Skip to content

Commit

Permalink
Dev: Compare surveyId using is_int
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Aug 4, 2016
1 parent df24756 commit fe2b2df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/admin/NotificationController.php
Expand Up @@ -88,7 +88,7 @@ public function clearAllNotifications($surveyId = null)
'entity = \'user\' AND entity_id = ' . Yii::app()->user->id
);

if ($surveyId)
if (is_int($surveyId))
{
Notification::model()->deleteAll(
'entity = \'survey\' AND entity_id = ' . $surveyId
Expand Down

0 comments on commit fe2b2df

Please sign in to comment.