Skip to content

Commit

Permalink
Fixed PHP reference error in core/Common.php
Browse files Browse the repository at this point in the history
  • Loading branch information
nsnw committed Mar 18, 2015
1 parent 126419b commit 2d19c07
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions system/core/Common.php
Expand Up @@ -241,7 +241,10 @@ function &get_config($replace = array())
}
}

return $_config[0] =& $config;
# Fix irritating PHP error
# see http://stackoverflow.com/questions/28348879/only-variable-references-should-be-returned-by-reference-codeigniter
$_config[0] =& $config;
return $_config[0];
}

// ------------------------------------------------------------------------
Expand Down Expand Up @@ -505,4 +508,4 @@ function remove_invisible_characters($str)


/* End of file Common.php */
/* Location: ./system/core/Common.php */
/* Location: ./system/core/Common.php */

0 comments on commit 2d19c07

Please sign in to comment.