From 9131a8d4eafc6ba2f5db0a93e929f531447b29bf Mon Sep 17 00:00:00 2001 From: Glutamat42 Date: Wed, 8 Nov 2023 15:36:01 +0100 Subject: [PATCH] fix param order of property_exist --- opt/adler/moodle/adler_setup/setup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opt/adler/moodle/adler_setup/setup.php b/opt/adler/moodle/adler_setup/setup.php index c81f3c2..ab9b012 100644 --- a/opt/adler/moodle/adler_setup/setup.php +++ b/opt/adler/moodle/adler_setup/setup.php @@ -145,7 +145,7 @@ function get_plugin_config() { if ($info === false) { cli_writeln("No update available for {$plugin['name']} {$plugin['version']}"); continue; - } else if ($info !== null && property_exists('tag_name', $info)) { + } else if ($info !== null && property_exists($info, 'tag_name')) { // checking for one of the keys is sufficient $url = $info->zip_url; } else {