Welcome, Guest
Username Password: Remember me

call-time pass-by-reference
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: call-time pass-by-reference

call-time pass-by-reference 13 years, 3 months ago #4867

  • devdesdog
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
When I activate Joomla Mobile for the iPhone (this is the only mobile device I can check, so I am not sure if it happens on the other templates, but since it is a php server error I guess these templates have the same problem) I get the following warnings/errors. The menu and content is correctly shown underneath this warnings:

call-time pass-by-reference has been deprecated in c:....../modules/mod_mj_menu/mod_mj_menu.php on line 56
call-time pass-by-reference has been deprecated in c:....../modules/mod_mj_menu/mod_mj_menu.php on line 57

the lines it is refering to are:

$exclude_menu_ids = explode(',', $params->get('excludemenu'));
JMobileMenuHelper::prepareMenu(&$rows, $exclude_menu_ids, $params);
JMobileMenuHelper::prepareMenu(&$subrows, $exclude_menu_ids, $params);

Server:
PHP: php5 (5.2.17)
SQL: MySQL 5

Re: call-time pass-by-reference 13 years, 3 months ago #4868

  • devdesdog
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
removing the '&' before $rows and $subrows did remove the error, but I am not sure if this is the right solution

Re: call-time pass-by-reference 13 years, 3 months ago #4869

  • dryabov
  • OFFLINE
  • Administrator
  • Denis Ryabov, Lead Developer
  • Posts: 4867
  • Karma: 105
Yes, it's right.
  • Page:
  • 1
Time to create page: 0.07 seconds

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.