From b4d21c24fee0316cb847ee41bd0605d360b12ccf Mon Sep 17 00:00:00 2001 From: ozh Date: Sun, 5 May 2013 00:29:16 +0200 Subject: [PATCH] Let's make this even more simpler. --- includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 24881fd..382486e 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -997,6 +997,7 @@ function yourls_get_all_options() { if( property_exists( $ydb, 'option' ) ) { $ydb->option = yourls_apply_filter( 'get_all_options', $ydb->option ); + $ydb->installed = true; } else { // Zero option found: assume YOURLS is not installed $ydb->installed = false; @@ -1291,8 +1292,7 @@ function yourls_is_upgrading() { /** * Check if YOURLS is installed * - * Checks property $ydb->installed that is created and set to false by yourls_get_all_options() if no - * option was readable. The property doesn't exist otherwise. + * Checks property $ydb->installed that is created by yourls_get_all_options() * * See inline comment for updating from 1.3 or prior. * -- 2.45.0