Only check the defaultable array if it is, in fact, an array.

develop
Sven Slootweg 12 years ago
parent 56b741bbee
commit d27086aca7

@ -174,7 +174,7 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass
} }
catch (NotFoundException $e) catch (NotFoundException $e)
{ {
if(in_array($variable_name, $defaultable)) if(is_array($defaultable) && in_array($variable_name, $defaultable))
{ {
// Set to default value // Set to default value
} }

Loading…
Cancel
Save