From 20d9376e57783b63664010b793aabd14751acf84 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 25 Oct 2006 00:40:37 +0000 Subject: [PATCH] r1270: Remove an implode() warning on admin/field.php:235 --- admin/field.php | 2 +- docs/changes.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/field.php b/admin/field.php index 5c4dc04..bc1ad54 100644 --- a/admin/field.php +++ b/admin/field.php @@ -232,7 +232,7 @@ if ($_REQUEST['do'] == 'add' OR $_REQUEST['do'] == 'edit') break; case 'select_single': - $admin->row_textarea(_('Selection Values'), 'selects', stripslashes(implode("\n", unserialize($field->objdata['selects'])))); + $admin->row_textarea(_('Selection Values'), 'selects', stripslashes(implode("\n", (array)unserialize($field->objdata['selects'])))); $admin->row_yesno(_('Make the First Option Default'), 'usedefault', $field->objdata['usedefault']); break; } diff --git a/docs/changes.txt b/docs/changes.txt index 0c8d7ac..1c9a321 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -3,6 +3,7 @@ - Time zones with half-hours are not saved because the field only allows INTs (http://www.bluestatic.org/bugs/showreport.php?bugid=38) - Fixed a SQL error received upon deleting a resolution (http://www.bluestatic.org/bugs/showreport.php?bugid=40) - When searching and selecting multiple items for a field, only the first one is used in the search (http://www.bluestatic.org/bugs/showreport.php?bugid=39) +- Need to cast the unserialized data to an array to remove an implode() warning [admin/field.php#235] 1.1.3 =============================== -- 2.22.5