public
Description: The ultra-lightweight ultra-flexible blogging engine with a fetish for birds and misspellings.
Homepage: http://chyrp.net/
Clone URL: git://github.com/vito/chyrp.git
Click here to lend your support to: chyrp and make a donation at www.pledgie.com !
Fixed improper status-searching in Post::__construct.
vito (author)
Mon Sep 01 20:49:14 -0700 2008
commit  1a5a56f507a1104b9c5d517a171a5bcace80f5e0
tree    9e99be2ef6b0ba47d3b7fe235f2886ecf217cdae
parent  056d0023eb9c16f95e88545cbdbf44ada446498d
...
28
29
30
31
32
 
 
33
34
35
...
28
29
30
 
 
31
32
33
34
35
0
@@ -28,8 +28,8 @@
0
         $options["where"] = array();
0
 
0
       $has_status = false;
0
-      foreach ($options["where"] as $where)
0
-        if (substr_count($where, "status"))
0
+      foreach ($options["where"] as $key => $val)
0
+        if (is_int($key) and substr_count($val, "status") or $key == "status")
0
           $has_status = true;
0
 
0
       if (!XML_RPC) {

Comments