Permalink
Browse files

Fixed PHP reference error in core/Common.php

  • Loading branch information...
1 parent 126419b commit 2d19c07d5e396d91d99641584a0c04f8b6d005f9 @ve7cxz ve7cxz committed Mar 18, 2015
Showing with 5 additions and 2 deletions.
  1. +5 −2 system/core/Common.php
@@ -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];
}
// ------------------------------------------------------------------------
@@ -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.