Commit e3200b92 authored by dloser's avatar dloser
Browse files

Fix user check in Meta; user object always exists, so use isAuth()

parent 953651d8
......@@ -6,7 +6,7 @@
public static function get($key, $userID = null) {
if ($userID == null) {
if (!\dtw\DtW::getInstance()->user) {
if (!\dtw\DtW::getInstance()->user->isAuth()) {
return;
}
......@@ -42,7 +42,7 @@
public static function set($key, $value, $update = true, $userID = null) {
if ($userID == null) {
if (!\dtw\DtW::getInstance()->user) {
if (!\dtw\DtW::getInstance()->user->isAuth()) {
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment