Notify.php
authorEdward <edward@roojs.com>
Wed, 2 Jul 2014 09:21:03 +0000 (17:21 +0800)
committerEdward <edward@roojs.com>
Wed, 2 Jul 2014 09:21:03 +0000 (17:21 +0800)
Notify.php

index 1ec6f2d..c9c6eaf 100644 (file)
@@ -134,7 +134,7 @@ class Pman_Core_Notify extends Pman
         if (empty($opts['limit'])) {
             $opts['limit'] = '1000'; // not sure why it's not picking up the defautl..
         }
-        
+        $showold = !empty($opts['old']);
         if (!empty($opts['old'])) {
             $opts['list'] = 1; // force listing..
         }
@@ -174,7 +174,7 @@ class Pman_Core_Notify extends Pman
         $w = DB_DataObject::factory($this->table);
         
         
-        if (!$showold) {
+        if (!empty($opts['old']) {
             
             // standard