--- serendipity-nightly/include/admin/images.inc.php 2009-08-24 10:06:34.000000000 +0200 +++ images.inc.php 2009-10-26 17:20:27.000000000 +0100 @@ -825,7 +825,7 @@ function showMediaLibrary($messages=false) { if (!serendipity_checkPermission('adminImagesView')) { return; - } + } if(!empty($messages)) { echo '
'; } + global $image_selector_addvars; + #if $image_selector_addvars is not empty, this was called by + #serendipity_admin_image_selector.php and the library shall not be displayed (yet). + if (!empty($image_selector_addvars)) { + return; + } + + ?>