Sfoglia il codice sorgente

Update UserModel.class.php

star7th 6 anni fa
parent
commit
6af8986972
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 9 0
      server/Application/Api/Model/UserModel.class.php

+ 9 - 0
server/Application/Api/Model/UserModel.class.php

@@ -103,4 +103,13 @@ class UserModel extends BaseModel {
 
     }
 
+    public function checkDbOk(){
+        $ret = $this->find() ;
+        if ($ret) {
+            return true; 
+        }else{
+            return false; 
+        }
+    }
+
 }