diff --git a/installation/src/Helper/DatabaseHelper.php b/installation/src/Helper/DatabaseHelper.php index efbd94c52341e..55c7258a1dfbd 100644 --- a/installation/src/Helper/DatabaseHelper.php +++ b/installation/src/Helper/DatabaseHelper.php @@ -365,9 +365,10 @@ public static function checkRemoteDbHost($options) // Get the path $remoteDbPath = JPATH_INSTALLATION . '/' . $remoteDbFile; + $emptyString = ''; // When the path is not writable the user needs to create the file manually - if (!File::write($remoteDbPath, '')) { + if (!File::write($remoteDbPath, $emptyString)) { // Request to create the file manually Factory::getApplication()->enqueueMessage( Text::sprintf(