diff --git a/workflows.php b/workflows.php index 936b309..4996b67 100644 --- a/workflows.php +++ b/workflows.php @@ -315,7 +315,7 @@ public function get( $a, $b ) { exec( 'defaults read "'. $b .'" '.$a, $out ); // Execute system call to read plist value - if ( $out == "" ): + if ( empty( $out ) ): return false; endif; @@ -480,4 +480,4 @@ public function result( $uid, $arg, $title, $sub, $icon, $valid='yes', $auto=nul return $temp; } -} \ No newline at end of file +}