mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-09-28 07:54:18 +08:00
Bugfix: RainLoop\Common\PdoAbstract::getVersion(): Return value must be of type ?int, string returned
This commit is contained in:
parent
df34c4a0ae
commit
1dfb4c7d29
1 changed files with 2 additions and 3 deletions
|
@ -256,13 +256,12 @@ abstract class PdoAbstract
|
|||
if ($oStmt->execute(array($sName)))
|
||||
{
|
||||
$mRow = $oStmt->fetchAll(\PDO::FETCH_ASSOC);
|
||||
$sKey = 'value_int';
|
||||
if ($mRow && isset($mRow[0]['value_int']))
|
||||
{
|
||||
return $bReturnIntValue ? (int) $mRow[0]['value_int'] : (string) $mRow[0]['value_int'];
|
||||
return (int) $mRow[0]['value_int'];
|
||||
}
|
||||
|
||||
return $bReturnIntValue ? 0 : '';
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue