Welcome Guest, Not a member yet? Register   Sign In
FIX: "Fatal error" reporting errors in DB_driver.php
#2

[eluser]Unknown[/eluser]
Your fix doesn't take into account the fact that $message could be an array or a string. You're also ensuring that $message is a multidimensional array if $native is set to FALSE. The following will fix this across the board and not introduce errors when this function is used with different parameters.

[code]

if ($native == TRUE)
{
- $message = $error;
+ $message = ( ! is_array($error)) ? array($error) : $error;
}
else
{
[code]


Messages In This Thread
FIX: "Fatal error" reporting errors in DB_driver.php - by El Forum - 11-15-2011, 10:39 AM
FIX: "Fatal error" reporting errors in DB_driver.php - by El Forum - 06-22-2012, 05:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB