Permalink
Browse files

Fixed a PHP error on save if $data isn't an array

  • Loading branch information...
1 parent a1e99a9 commit 87cba2f04089062291eaf0e596eda0d927f9e188 @brandonkelly brandonkelly committed Nov 2, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 ee2/third_party/pt_list/ft.pt_list.php
@@ -161,6 +161,8 @@ private function _filter_data($item)
*/
function save($data)
{
+ if (! is_array($data)) $data = array();
+
// flatten list into one string
$data = implode("\n", array_filter($data, array(&$this, '_filter_data')));

0 comments on commit 87cba2f

Please sign in to comment.