Skip to content

Commit

Permalink
Merge pull request pkp#4605 from ptrckb/submissiondao-undefined-variable
Browse files Browse the repository at this point in the history
pkp#4604 Fix undefined variable
  • Loading branch information
asmecher authored Mar 15, 2019
2 parents 2cda247 + 465da70 commit e8a1241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/submission/SubmissionDAO.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 (';
Expand Down

0 comments on commit e8a1241

Please sign in to comment.