From 87eae79ba1309ba6857f9ca64ce5e6831c180318 Mon Sep 17 00:00:00 2001 From: secretr Date: Thu, 22 Mar 2012 15:34:47 +0000 Subject: [PATCH] system user getter mislogic --- e107_handlers/e107_class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/e107_handlers/e107_class.php b/e107_handlers/e107_class.php index c3e5c9af3..523efafa5 100644 --- a/e107_handlers/e107_class.php +++ b/e107_handlers/e107_class.php @@ -1203,6 +1203,9 @@ class e107 { return self::getUser(); } + + if(!$user_id) return self::getObject('e_system_user'); + $user = self::getRegistry('core/e107/user/'.$user_id); if(null === $user) {