Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1430
Modified Files:
serendipity_functions.inc.php
Log Message:
We need to return an array(), otherwise foreach() craps out all over the place
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.280
retrieving revision 1.281
diff -u -d -r1.280 -r1.281
--- serendipity_functions.inc.php 7 Jun 2004 15:29:39 -0000 1.280
+++ serendipity_functions.inc.php 7 Jun 2004 17:37:23 -0000 1.281
@@ -756,7 +756,7 @@
// check whether there were any associated categories.
// if not, store a 'True' value for compatibility.
if ($i > -1 && !isset($return[$i]['categories'])) {
- $return[$i]['categories'] = 1;
+ $return[$i]['categories'] = array();
}
$i++;
@@ -780,7 +780,7 @@
if ($i > -1 && !isset($return[$i]['categories'])) {
// see above
- $return[$i]['categories'] = 1;
+ $return[$i]['categories'] = array();
}
return $return;
|