diff --git a/workflows.php b/workflows.php index 936b309..d5f1d23 100644 --- a/workflows.php +++ b/workflows.php @@ -437,7 +437,7 @@ public function read( $a, $array = false ) $out = file_get_contents( $a ); if ( !is_null( json_decode( $out ) ) && !$array ): $out = json_decode( $out ); - elseif ( !is_null( json_decode( $out ) ) && !$array ): + elseif ( !is_null( json_decode( $out ) ) && $array ): $out = json_decode( $out, true ); 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 +}