diff options
-rw-r--r-- | core/controllers/welcome.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index 10903f67..575156e5 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -193,7 +193,7 @@ class Welcome_Controller extends Template_Controller { function add_albums_and_photos($count, $desired_type=null) { srand(time()); $parents = ORM::factory("item")->where("type", "album")->find_all()->as_array(); - $owner_id = class_exists("user") ? user::active()->id : null; + $owner_id = module::is_installed("user") ? user::active()->id : null; $test_images = glob(APPPATH . "tests/images/*.[Jj][Pp][Gg]"); |