Skip to content
This repository has been archived by the owner on Mar 17, 2018. It is now read-only.

Commit

Permalink
Fixed a PHP error on save if $data isn't an array
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Kelly committed Nov 2, 2011
1 parent a1e99a9 commit 87cba2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ee2/third_party/pt_list/ft.pt_list.php
Expand Up @@ -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')));

Expand Down

0 comments on commit 87cba2f

Please sign in to comment.