<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -226,7 +226,7 @@ class helper_plugin_pagelist extends DokuWiki_Plugin {
         $this-&gt;doc .= DOKU_TAB.'&lt;tr'.$class.'&gt;'.DOKU_LF;
 
         $this-&gt;_pageCell($id);    
-        if ($this-&gt;column['date']) $this-&gt;_dateCell($id);
+        if ($this-&gt;column['date']) $this-&gt;_dateCell();
         if ($this-&gt;column['user']) $this-&gt;_userCell($id);
         if ($this-&gt;column['desc']) $this-&gt;_descCell($id);
         foreach ($this-&gt;plugins as $plug =&gt; $col) {
@@ -293,19 +293,20 @@ class helper_plugin_pagelist extends DokuWiki_Plugin {
     /**
      * Date - creation or last modification date if not set otherwise
      */
-    function _dateCell($id) {    
+    function _dateCell() {    
         global $conf;
 
-        if (!array_key_exists('date', $this-&gt;page)) {
-            if ($this-&gt;column['date'] == 2)
-                $this-&gt;page['date'] = $this-&gt;_getMeta(array('date', 'modified'));
-            else
-                $this-&gt;page['date'] = $this-&gt;_getMeta(array('date', 'created'));
+        if($this-&gt;column['date'] == 2) {
+            $this-&gt;page['date'] = $this-&gt;_getMeta(array('date', 'modified'));
+        } elseif(!$this-&gt;page['date'] &amp;&amp; $this-&gt;page['exist']) {
+            $this-&gt;page['date'] = $this-&gt;_getMeta(array('date', 'created'));
         }
-        if ((!$this-&gt;page['date']) || (!$this-&gt;page['exists']))
+
+        if ((!$this-&gt;page['date']) || (!$this-&gt;page['exists'])) {
             return $this-&gt;_printCell('date', '');
-        else
+        } else {
             return $this-&gt;_printCell('date', strftime($conf['dformat'], $this-&gt;page['date']));
+        }
     }
 
     /**</diff>
      <filename>helper.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0b3b53577f626807387aedbe7b670c837d458d18</id>
    </parent>
  </parents>
  <author>
    <name>Michael Klier</name>
    <email>chi@chimeric.de</email>
  </author>
  <url>http://github.com/dokufreaks/plugin-pagelist/commit/ded8b435780db48b431b13c5196af776dbae73f6</url>
  <id>ded8b435780db48b431b13c5196af776dbae73f6</id>
  <committed-date>2009-04-27T13:19:14-07:00</committed-date>
  <authored-date>2009-04-27T13:19:14-07:00</authored-date>
  <message>fixed _dateCell()

darcs-hash:20090427201914-23886-ed4df5fdab50c90acd8e1c6862a6ddf73cc8c5af.gz</message>
  <tree>0658c2d5b185ce31eac03f6b0c174cc7b05e6cad</tree>
  <committer>
    <name>Michael Klier</name>
    <email>chi@chimeric.de</email>
  </committer>
</commit>
