From f6381c534e92e230349f5633eb280a22421d9050 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 22 Dec 2008 04:54:51 +0000 Subject: Reinstate the dummy error handler to ensure that we work in a clean install w/ no database --- core/helpers/module.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/helpers/module.php') diff --git a/core/helpers/module.php b/core/helpers/module.php index 17a0606b..fc7d7042 100644 --- a/core/helpers/module.php +++ b/core/helpers/module.php @@ -152,11 +152,13 @@ class module_Core { // Do The Right Thing. // // @todo get rid of this extra error checking when we have an installer. + set_error_handler(array("module", "dummy_error_handler")); try { $modules = ORM::factory("module")->find_all(); } catch (Exception $e) { return; } + restore_error_handler(); try { foreach ($modules as $module) { @@ -173,6 +175,7 @@ class module_Core { self::event("gallery_ready"); } + public static function dummy_error_handler() { } /** * Load the active theme. This is called at bootstrap time. We will only ever have one theme -- cgit v1.2.3