Conditional that makes no sense
Issue #659
resolved
Backend file: liveupdate/classes/download.php Lines: 402 - 422
if (version_compare(JVERSION, '3.0', 'ge')) is checked again in the else branch
if (version_compare(JVERSION, '3.0', 'ge'))
{
$ftp = JClientFTP::getInstance(
$ftpOptions['host'], $ftpOptions['port'], array(), $ftpOptions['user'], $ftpOptions['pass']
);
}
else
{
if (version_compare(JVERSION, '3.0', 'ge'))
{
$ftp = JClientFTP::getInstance(
$ftpOptions['host'], $ftpOptions['port'], array(), $ftpOptions['user'], $ftpOptions['pass']
);
}
else
{
$ftp = JFTP::getInstance(
$ftpOptions['host'], $ftpOptions['port'], array(), $ftpOptions['user'], $ftpOptions['pass']
);
}
}
Comments (4)
-
repo owner -
repo owner - changed status to resolved
-
repo owner fix
#659fix#655test new backend events avec alleevents3.com→ <<cset b837c1efaa32>>
-
repo owner - removed version
Removing version: 3.3.7 (automated comment)
- Log in to comment
Sorry but this code is in the liveupdate component. I don't touch on any code from this :)
But thank you for your job !
Manu