]> git.mjollnir.org Git - s9y.git/commitdiff
fix proper failure code
authorgarvinhicking <garvinhicking>
Sun, 15 Jan 2006 18:07:59 +0000 (18:07 +0000)
committergarvinhicking <garvinhicking>
Sun, 15 Jan 2006 18:07:59 +0000 (18:07 +0000)
include/functions_entries.inc.php

index 84e1bb1e112c450318b9dcdba26d8d46441f0cbd..665f573a0b3f5cc57769127e17d510528797f1e5 100644 (file)
@@ -318,11 +318,11 @@ function serendipity_fetchEntries($range = null, $full = true, $limit = '', $fet
         $group    = 'GROUP BY e.id';
         $distinct = '';
     }
-    
+
     if (!is_null($group_by)) {
         $group = $group_by;
     }
-    
+
     if (is_null($select_key)) {
         $select_key = "$distinct
                     {$cond['addkey']}
@@ -367,7 +367,7 @@ function serendipity_fetchEntries($range = null, $full = true, $limit = '', $fet
     // DEBUG:
     // die($query);
     $fetch_single = ($returncode == 'single' ? true: false);
-    
+
     if ($returncode == 'query') {
         return $query;
     }
@@ -615,7 +615,7 @@ function serendipity_fetchCategories($authorid = null, $name = null, $order = nu
     }
 
     $ret = serendipity_db_query($querystring);
-    if (!is_array($ret)) {
+    if (is_string($ret)) {
         echo "Query failed: $ret";
     }
     return $ret;