May be a bug
Posted: 12 Oct 2022, 09:43
Code: Select all
Symfony\Component\ErrorHandler\Error\FatalError:
Compile Error: Declaration of PhocaGalleryCpModelPhocaGalleryUser::delete($cid = []) must be compatible with Joomla\CMS\MVC\Model\AdminModel::delete(&$pks)
Code: Select all
function setId($id) {
$this->_id = $id;
}
*/
/*TO DO - add rules like in approve */
function delete($cid = array()) { /* <<<<----r-o-w-144-h-e-r-e--------------------- */
if (count( $cid )) {
\Joomla\Utilities\ArrayHelper::toInteger($cid);
$cids = implode( ',', $cid );