diff --git a/src/Kunstmaan/PagePartBundle/PagePartAdmin/PagePartAdmin.php b/src/Kunstmaan/PagePartBundle/PagePartAdmin/PagePartAdmin.php index ae1e5234dd..d51b36f39c 100644 --- a/src/Kunstmaan/PagePartBundle/PagePartAdmin/PagePartAdmin.php +++ b/src/Kunstmaan/PagePartBundle/PagePartAdmin/PagePartAdmin.php @@ -152,7 +152,9 @@ public function preBindRequest(Request $request) preg_match('#^delete_pagepartadmin_(\d+)_(.*)#', $key, $ppInfo); preg_match_all('#([a-zA-Z0-9]+)_(\\d+)#', $ppInfo[2], $matches, PREG_SET_ORDER); - $subPagePartsToDelete[$ppInfo[1]][] = $this->getDeleteInfo($matches); + if (count($matches) > 0) { + $subPagePartsToDelete[$ppInfo[1]][] = $this->getDeleteInfo($matches); + } } $doFlush = false;