From 516ea076eaccbd328abaadfa564c81a992fef815 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Sat, 14 Jan 2012 23:53:06 +0200 Subject: [PATCH] fix generation of sql w/o database --- ipf/auth/app.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ipf/auth/app.php b/ipf/auth/app.php index 0209f20..9fafdea 100644 --- a/ipf/auth/app.php +++ b/ipf/auth/app.php @@ -122,7 +122,11 @@ class IPF_Auth_App extends IPF_Application static function ArePermissionsEnabled() { - return IPF_ORM_Query::create()->from('Permission')->count() ? true : false; + try { + return IPF_ORM_Query::create()->from('Permission')->count() ? true : false; + } catch (IPF_ORM_Exception $e) { + return true; + } } static function checkPermissions($request, $app, $modelName, array $perms) -- 2.49.0