From 465da7034e8b2be1653b5241078e1d17d49fe695 Mon Sep 17 00:00:00 2001 From: Patrick Bernaud Date: Thu, 14 Mar 2019 13:32:06 +0100 Subject: [PATCH] pkp/pkp-lib#4604 Fix undefined variable --- classes/submission/SubmissionDAO.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/submission/SubmissionDAO.inc.php b/classes/submission/SubmissionDAO.inc.php index 937b7dafe4b..6ddf121b855 100644 --- a/classes/submission/SubmissionDAO.inc.php +++ b/classes/submission/SubmissionDAO.inc.php @@ -901,7 +901,7 @@ function deletePermissions($contextId) { */ public function getSearchWhere($phrase) { $searchWhere = ''; - if ($search) { + if ($phrase) { $words = explode(" ", trim($phrase)); if (count($words)) { $searchWhere = ' AND (';