phocadownload plugin PHP Strict Standards
Posted: 23 Jun 2014, 17:53
The phocadownload plugin has the following PHP Strict Standards (joomla 2.5.x and joomla 3.3.x)
[Mon Jun 23 10:47:12 2014] [warn] [client] mod_fcgid: stderr: PHP Strict Standards: Only variables should be assigned by reference in /plugins/content/phocadownload/phocadownload.php on line 30
[Mon Jun 23 10:47:12 2014] [warn] [client] mod_fcgid: stderr: PHP Strict Standards: Only variables should be assigned by reference in /plugins/content/phocadownload/phocadownload.php on line 31
original lines 30 and 31
change to
[Mon Jun 23 10:47:12 2014] [warn] [client] mod_fcgid: stderr: PHP Strict Standards: Only variables should be assigned by reference in /plugins/content/phocadownload/phocadownload.php on line 30
[Mon Jun 23 10:47:12 2014] [warn] [client] mod_fcgid: stderr: PHP Strict Standards: Only variables should be assigned by reference in /plugins/content/phocadownload/phocadownload.php on line 31
original lines 30 and 31
Code: Select all
$document = &JFactory::getDocument();
$db = &JFactory::getDBO();
Code: Select all
$document = JFactory::getDocument();
$db = JFactory::getDbo();