mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Remove possibility of E_NOTICE in updatetreenodes().
This commit is contained in:
parent
0b22ca6c59
commit
77c35e7bde
@ -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