<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -171,7 +171,7 @@
             if (!isset($id) and isset($options[&quot;where&quot;][&quot;id&quot;]))
                 $id = $options[&quot;where&quot;][&quot;id&quot;];
 
-            $cache = (is_numeric($id) and isset(self::$caches[$model_name][$id])) ? 
+            $cache = (is_numeric($id) and isset(self::$caches[$model_name][$id])) ?
                          self::$caches[$model_name][$id] :
                          ((isset($options[&quot;read_from&quot;][&quot;id&quot;]) and isset(self::$caches[$model_name][$options[&quot;read_from&quot;][&quot;id&quot;]])) ?
                              self::$caches[$model_name][$options[&quot;read_from&quot;][&quot;id&quot;]] :
@@ -266,7 +266,7 @@
                 $model-&gt;queryString = $query-&gt;queryString;
 
             if (isset($model-&gt;updated_at))
-                $model-&gt;updated = !empty($model-&gt;updated_at);
+                $model-&gt;updated = (!empty($model-&gt;updated_at) and $model-&gt;updated_at != &quot;0000-00-00 00:00:00&quot;);
 
             $clone = clone $model;
 </diff>
      <filename>includes/class/Model.php</filename>
    </modified>
    <modified>
      <diff>@@ -838,7 +838,7 @@
         $last = null;
         $args = func_get_args();
         foreach ($args as $index =&gt; $arg) {
-            if (!isset($arg) or (is_string($arg) and trim($arg) === &quot;&quot;) or $arg === array() or (is_object($arg) and empty($arg)))
+            if (!isset($arg) or (is_string($arg) and trim($arg) === &quot;&quot;) or $arg === array() or (is_object($arg) and empty($arg)) or ($arg === &quot;0000-00-00 00:00:00&quot;))
                 $last = $arg;
             else
                 return $arg;
@@ -1022,7 +1022,7 @@
     function uploaded($file, $url = true) {
         if (empty($file))
             return &quot;&quot;;
-        
+
         $config = Config::current();
         return ($url ? $config-&gt;chyrp_url.$config-&gt;uploads_path.$file : MAIN_DIR.$config-&gt;uploads_path.$file);
     }</diff>
      <filename>includes/helpers.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a30e0a79b41baaa85ea1b8b2acf7f06dcd5b7aca</id>
    </parent>
  </parents>
  <author>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </author>
  <url>http://github.com/vito/chyrp/commit/54167dbcb1c5fe4da5073838b4b202d170dfcf7e</url>
  <id>54167dbcb1c5fe4da5073838b4b202d170dfcf7e</id>
  <committed-date>2009-09-13T16:52:32-07:00</committed-date>
  <authored-date>2009-09-13T16:52:32-07:00</authored-date>
  <message>Fixed models with updated_at as &quot;0000-00-00 00:00:00&quot; having -&gt;updated = true.</message>
  <tree>afca32b970320008154b348dfe7aa662904e516a</tree>
  <committer>
    <name>Alex Suraci</name>
    <email>i.am@toogeneric.com</email>
  </committer>
</commit>
