mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
fix PHP 8.1 makes all schema errors fatal, change that back to previous behavior, to ease updates
This commit is contained in:
parent
676e855ad5
commit
1989e1a949
@ -948,7 +948,12 @@ class Schema
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$retval = $this->dict->ExecuteSQLArray($aSql);
|
try {
|
||||||
|
$retval = $this->dict->ExecuteSQLArray($aSql);
|
||||||
|
}
|
||||||
|
catch (\mysqli_sql_exception $e) {
|
||||||
|
$retval = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ($retval < 2 || $this->debug >= $debug_level || $this->debug > 3)
|
if ($retval < 2 || $this->debug >= $debug_level || $this->debug > 3)
|
||||||
{
|
{
|
||||||
@ -1532,4 +1537,4 @@ class Schema
|
|||||||
$this->$kind = $tabledef[$kind];
|
$this->$kind = $tabledef[$kind];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user