Only variables should be passed by reference |
I get this error on my admin controller and I'm not sure how to fix it.
Severity: Runtime Notice Message: Only variables should be passed by reference Filename: controllers/Admin.php Line Number: 14 Line 14: PHP Code: $section = end($this->uri->segment_array());
Check the PHP documentation about the end() function: http://php.net/manual/en/function.end.php
Quoting the parameters section: Quote:array Try this: PHP Code: $segments = $this->uri->segment_array();
Best regards,
José Postiga Senior Backend Developer |
Welcome Guest, Not a member yet? Register Sign In |