mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #2770 from madmatt/pulls/updatetreenodes-notice
BUG: Remove possibility of E_NOTICE in updatetreenodes().
This commit is contained in:
commit
e302793bda
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user