<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1324,14 +1324,15 @@
             list($test, $equals,) = explode(&quot;:&quot;, $match);
 
             if ($equals[0] == '&quot;') {
-                foreach ($search as $index =&gt; $part) {
-                    $equals.= &quot; &quot;.$part;
+                if (substr($equals, -1) != '&quot;')
+                    foreach ($search as $index =&gt; $part) {
+                        $equals.= &quot; &quot;.$part;
 
-                    unset($search[$index]);
+                        unset($search[$index]);
 
-                    if (substr($part, -1) == '&quot;')
-                        break;
-                }
+                        if (substr($part, -1) == '&quot;')
+                            break;
+                    }
 
                 $equals = ltrim(trim($equals, '&quot;'), '&quot;');
             }
@@ -1361,8 +1362,14 @@
 
         if ($table)
             foreach ($where as $col =&gt; $val)
-                if (!isset($columns[$col]))
+                if (!isset($columns[$col])) {
+                    if ($table == &quot;posts&quot;) {
+                        $where[&quot;post_attributes.name&quot;] = $col;
+                        $where[&quot;post_attributes.value like&quot;] = &quot;%&quot;.$val.&quot;%&quot;;
+                    }
+
                     unset($where[$col]);
+                }
 
         if (!empty($search)) {
             $where[] = $plain;</diff>
      <filename>includes/helpers.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f7a87f76bbb539b1e87f09a704ab43a9a83a455e</id>
    </parent>
  </parents>
  <author>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </author>
  <url>http://github.com/vito/chyrp/commit/6e9b8369ef791f83f7bc311bb215025a5c4f7fbd</url>
  <id>6e9b8369ef791f83f7bc311bb215025a5c4f7fbd</id>
  <committed-date>2008-10-31T18:21:38-07:00</committed-date>
  <authored-date>2008-10-31T18:21:38-07:00</authored-date>
  <message>Implemented post attribute keyword searching. [#256 state:resolved]</message>
  <tree>87eee65a09b3ba57f396c34cfda365bafe4043be</tree>
  <committer>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </committer>
</commit>
