diff --git a/system/autoload/User.php b/system/autoload/User.php index e9358620..e8e6e65f 100644 --- a/system/autoload/User.php +++ b/system/autoload/User.php @@ -123,7 +123,7 @@ class User return 0; } - public static function getAttribute($name, $id = 0) + public static function getAttribute($name, $id = 0, $default = '') { if (!$id) { $id = User::getID(); @@ -135,7 +135,7 @@ class User if ($f) { return $f['field_value']; } - return ''; + return $default; } public static function getAttributes($endWith, $id = 0)