mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-30 01:38:37 +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
6f4f93c284
commit
fb2b3fff07
@ -948,7 +948,12 @@ class Schema
|
||||
}
|
||||
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)
|
||||
{
|
||||
@ -1532,4 +1537,4 @@ class Schema
|
||||
$this->$kind = $tabledef[$kind];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user