r1270: Remove an implode() warning on admin/field.php:235
authorRobert Sesek <rsesek@bluestatic.org>
Wed, 25 Oct 2006 00:40:37 +0000 (00:40 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Wed, 25 Oct 2006 00:40:37 +0000 (00:40 +0000)
admin/field.php
docs/changes.txt

index 5c4dc042d1301d4e4cdb75cfea06645ffa4db7d7..bc1ad5468d53d145f8a99de18287b89d149a02e8 100644 (file)
@@ -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;
                }
index 0c8d7ac42fbf886c67a21358f9373ba587ff1a2f..1c9a32139555ed6be9ec7371d885aca62545b92f 100644 (file)
@@ -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
 ===============================