DataObjects/Companies.php
authorChris <chris@roojs.com>
Fri, 10 Jan 2014 08:58:20 +0000 (16:58 +0800)
committerChris <chris@roojs.com>
Fri, 10 Jan 2014 08:58:20 +0000 (16:58 +0800)
DataObjects/Companies.php

index c1632fd..d82b625 100644 (file)
@@ -233,7 +233,7 @@ class Pman_Core_DataObjects_Companies extends DB_DataObject
     
     function beforeUpdate($old, $q,$roo)
     {
-        if($this->is_system == 1){
+        if(!empty($this->is_system)){
             $roo->jerr('This company is not allow to editing...');
         }
     }