Pman/Roo.php
authorAlan Knowles <alan@akbkhome.com>
Fri, 22 Oct 2010 11:06:35 +0000 (19:06 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 22 Oct 2010 11:06:35 +0000 (19:06 +0800)
Pman/Roo.php

index b4f87eb..2dba59b 100644 (file)
@@ -568,7 +568,9 @@ class Pman_Roo extends Pman
         $pk = $pk[0];
         
         $x->whereAdd($pk .'  IN ('. implode(',', $bits) .')');
-        $x->find();
+        if (!$x->find()) {
+            $this->jerr("Nothing found to delete");
+        }
         $errs = array();
         while ($x->fetch()) {
             $xx = clone($x);