mirror of
https://gitlab.linphone.org/BC/public/flexisip-account-manager.git
synced 2026-01-17 01:58:07 +00:00
Fix DB access cleaning
This commit is contained in:
parent
c13228870d
commit
daa5e601ea
1 changed files with 3 additions and 1 deletions
|
|
@ -36,7 +36,9 @@ function linphonedb_fetch($result) {
|
|||
}
|
||||
|
||||
function linphonedb_clean($result) {
|
||||
mysqli_free_result($result);
|
||||
if (!is_bool($result)) { // some query may return a boolean, in that case we must not call free
|
||||
mysqli_free_result($result);
|
||||
}
|
||||
}
|
||||
|
||||
function linphonedb_close($conn) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue