Commit 0ddff5ee authored by Dries's avatar Dries
Browse files

- Patch #160491 by dvessel: fixed E_NOTICE warnings.

parent eb65040c
......@@ -1972,10 +1972,10 @@ function _comment_get_display_setting($setting) {
}
else {
// otherwise use the user's setting if set
if ($user->$setting) {
if (isset($user->$setting) && $user->$setting) {
$value = $user->$setting;
}
else if ($_SESSION['comment_'. $setting]) {
else if (isset($_SESSION['comment_'. $setting]) && $_SESSION['comment_'. $setting]) {
$value = $_SESSION['comment_'. $setting];
}
else {
......
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