Pman.php
authorAlan Knowles <alan@roojs.com>
Tue, 11 Apr 2017 09:20:48 +0000 (17:20 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 11 Apr 2017 09:20:48 +0000 (17:20 +0800)
Pman.php

index 6ca06f9..ec8ac82 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -241,7 +241,7 @@ class Pman extends HTML_FlexyFramework_Page
         
         $u = DB_DataObject::factory( $tbl );
         
-        if (is_a('PEAR_Error', $u) || !$u->isAuth()) {
+        if (is_a($u,'PEAR_Error') || !$u->isAuth()) {
             return false;
         }
         $this->authUser =$u->getAuthUser();