<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -194,7 +194,7 @@
 				if (is_int($key)) # Full expression
 					$cond = $val;
 				else { # Key =&gt; Val expression
-					if (is_string($val) and $val[0] == &quot;:&quot;)
+					if (is_string($val) and strlen($val) and $val[0] == &quot;:&quot;)
 						$cond = $key.&quot; = &quot;.$val;
 					else {
 						if (substr($key, -4) == &quot; not&quot;) { # Negation
@@ -218,6 +218,11 @@
 							$param = str_replace(array(&quot;(&quot;, &quot;)&quot;), &quot;_&quot;, $key);
 							$cond = $key.&quot; NOT LIKE :&quot;.$param;
 							$params[&quot;:&quot;.$param] = $val;
+						} elseif (substr_count($key, &quot; &quot;)) { # Custom operation, e.g. array(&quot;foo &gt;&quot; =&gt; $bar)
+							list($param,) = explode(&quot; &quot;, $key);
+							$param = str_replace(array(&quot;(&quot;, &quot;)&quot;), &quot;_&quot;, $param);
+							$cond = $key.&quot; :&quot;.$param;
+							$params[&quot;:&quot;.$param] = $val;
 						} else { # Equation
 							if (is_array($val))
 								$cond = $key.&quot; IN &quot;.self::build_in($val);</diff>
      <filename>includes/class/QueryBuilder.php</filename>
    </modified>
    <modified>
      <diff>@@ -427,7 +427,7 @@
 						$new_comments = $sql-&gt;select(&quot;comments&quot;,
 						                             &quot;id&quot;,
 						                             array(&quot;post_id&quot; =&gt; $_POST['post_id'],
-						                                   &quot;id &gt; :last_comment&quot;,
+						                                   &quot;id &gt;&quot; =&gt; $_POST['last_comment'],
 						                                   &quot;status not&quot; =&gt; &quot;spam&quot;,
 						                                   &quot;status != 'denied' OR (
 						                                        (
@@ -438,8 +438,7 @@
 						                                        )
 						                                    )&quot;),
 						                             &quot;created_at ASC&quot;,
-						                             array(&quot;:last_comment&quot; =&gt; $_POST['last_comment'],
-						                                   &quot;:visitor_id&quot; =&gt; $visitor-&gt;id));
+						                             array(&quot;:visitor_id&quot; =&gt; $visitor-&gt;id));
 
 						$ids = array();
 						while ($the_comment = $new_comments-&gt;fetchObject())</diff>
      <filename>modules/comments/comments.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>12a1e446d0674cb95c26b4a44296d94684a4ed15</id>
    </parent>
  </parents>
  <author>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </author>
  <url>http://github.com/vito/chyrp/commit/78eaa182ebd2761dd7dfd29aa524c3fe8a6b1911</url>
  <id>78eaa182ebd2761dd7dfd29aa524c3fe8a6b1911</id>
  <committed-date>2008-09-02T19:26:21-07:00</committed-date>
  <authored-date>2008-09-02T19:26:21-07:00</authored-date>
  <message>* Fixed SQL query values with 0 length
* You can now use custom operators with SQL interfacing in the form of array(&quot;foo &gt;&quot; =&gt; $bar);</message>
  <tree>320600d0d971b3e552efd0ba6f73668f62645f5e</tree>
  <committer>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </committer>
</commit>
