X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Fsrc%2FDrupal%2FCommands%2Fcore%2FWatchdogCommands.php;h=673cc80c8d26e9bfb1c2d2fb1f6d1c18f40bb40d;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=5a307f73c2f1ef6b33f38bbf311f005d9b6b2d28;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/vendor/drush/drush/src/Drupal/Commands/core/WatchdogCommands.php b/vendor/drush/drush/src/Drupal/Commands/core/WatchdogCommands.php index 5a307f73c..673cc80c8 100644 --- a/vendor/drush/drush/src/Drupal/Commands/core/WatchdogCommands.php +++ b/vendor/drush/drush/src/Drupal/Commands/core/WatchdogCommands.php @@ -168,7 +168,7 @@ class WatchdogCommands extends DrushCommands throw new \Exception(dt('Watchdog message #!wid does not exist.', ['!wid' => $substring])); } } else { - if ((!isset($substring))&&(!isset($options['type']))&&(!isset($options['severity']))) { + if ((empty($substring))&&(!isset($options['type']))&&(!isset($options['severity']))) { throw new \Exception(dt('No options provided.')); } $where = $this->where($options['type'], $options['severity'], $substring, 'OR');