From f7cf45ab80c1d78c25492fcf1287f2a615b9940e Mon Sep 17 00:00:00 2001 From: stronk7 Date: Mon, 31 Dec 2007 15:18:59 +0000 Subject: [PATCH] Prevent some debugging notices, cast to object before inserting. --- lib/datalib.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/datalib.php b/lib/datalib.php index 2343a46c4bf..06450d9a9e4 100644 --- a/lib/datalib.php +++ b/lib/datalib.php @@ -1536,6 +1536,9 @@ function update_timezone_records($timezones) { /// Insert all the new stuff foreach ($timezones as $timezone) { + if (is_array($timezone)) { + $timezone = (object)$timezone; + } insert_record('timezone', $timezone); } }