function drop($share_id) { $share = $this->getOne($share_id); if ($share['logo'] && strpos($share['logo'], 'data/system/') === false) { file_exists(ROOT_PATH . '/' . $share['logo']) && @unlink(ROOT_PATH . '/' . $share['logo']); } parent::drop($share_id); }