Pressflow6.22 + PHP5.3.8

Report:

Notice: Undefined property: stdClass::$profile_smart_tabs_disable in _smart_tabs_user_has_smart_tabs_enabled() (line 354 of /var/www/virtual/peterbowey.com.au/sites/all/modules/smart_menus/smart_tabs.module).

I used to correcting PHP E' notices with Pressflow 6.22 +PHP 5.3.x,
I will see what I can do.

Comments

Peter Bowey’s picture

Status: Active » Needs review

Solution:

In smart_menus/smart_tabs.module apply these changes (the lines with +):

function _smart_tabs_user_has_smart_tabs_enabled() {
  global $user;
-  return !($user->profile_smart_tabs_disable);
+  return (!empty($user->profile_smart_tabs_disable) ? !($user->profile_smart_tabs_disable) : true);
}
brad.bulger’s picture

wouldn't it be the same result to just do this?

  return empty($user->profile_smart_tabs_disable);
rdeboer’s picture

Patch applied -- better late than never I guess.
Thanks Peter Bowey and Brad Bulger.
Rik

rdeboer’s picture

Assigned: Unassigned » rdeboer
Status: Needs review » Fixed

Automatically closed -- issue fixed for 2 weeks with no activity.