]> git.mjollnir.org Git - s9y.git/commitdiff
strict comparison
authorgarvinhicking <garvinhicking>
Wed, 14 Jun 2006 08:11:20 +0000 (08:11 +0000)
committergarvinhicking <garvinhicking>
Wed, 14 Jun 2006 08:11:20 +0000 (08:11 +0000)
include/functions_images.inc.php

index 1b2379dca24557ff3f95ffd496b74d4075464cb1..747be3b739e0741782d469043d9639b72c16232c 100644 (file)
@@ -143,7 +143,7 @@ function serendipity_fetchImagesFromDatabase($start=0, $limit=0, &$total, $order
         $cond['parts']['authorid'] .= " AND (i.authorid = 0 OR i.authorid = " . (int)$serendipity['authorid'] . ")\n";
     }
 
-    $cond['and']  = 'WHERE 1 ' . implode("\n", $cond['parts']);
+    $cond['and']  = 'WHERE 1=1 ' . implode("\n", $cond['parts']);
     $cond['args'] = func_get_args();
     serendipity_plugin_api::hook_event('fetch_images_sql', $cond);
     serendipity_ACL_SQL($cond, false, 'directory');