From 77c35e7bdeb3e6900460f943cb4cb8f7c1558ee0 Mon Sep 17 00:00:00 2001 From: madmatt Date: Mon, 13 Jan 2014 17:47:33 +1300 Subject: [PATCH] BUGFIX: Remove possibility of E_NOTICE in updatetreenodes(). --- admin/code/LeftAndMain.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin/code/LeftAndMain.php b/admin/code/LeftAndMain.php index b729d3dba..eab0c6e28 100644 --- a/admin/code/LeftAndMain.php +++ b/admin/code/LeftAndMain.php @@ -928,6 +928,8 @@ class LeftAndMain extends Controller implements PermissionProvider { $data = array(); $ids = explode(',', $request->getVar('ids')); foreach($ids as $id) { + if($id === "") continue; // $id may be a blank string, which is invalid and should be skipped over + $record = $this->getRecord($id); $recordController = ($this->stat('tree_class') == 'SiteTree') ? singleton('CMSPageEditController')