]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Using empty on a function return value (thanks mrvdb)
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 15 Jul 2014 16:15:36 +0000 (18:15 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 15 Jul 2014 16:15:36 +0000 (18:15 +0200)
Source: https://gist.github.com/mrvdb/0b49dd3c580bcfbe1358

actions/newnotice.php

index 81438502fa67639d4ba28a9934ff22bae960dcd0..3dab96daf3caecbf39bebd6466a5c6080ea9077b 100644 (file)
@@ -69,7 +69,7 @@ class NewnoticeAction extends FormAction
     protected function doPreparation()
     {
         foreach(array('inreplyto') as $opt) {
-            if (!empty($this->trimmed($opt))) {
+            if ($this->trimmed($opt)) {
                 $this->formOpts[$opt] = $this->trimmed($opt);
             }
         }