Skip to content

Commit a35735a

Browse files
committed
Fixed deprecation warning in PHP 8.3+; this also fixes #89
1 parent 0bf2cc1 commit a35735a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Zebra_Database.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Read more {@link https://github.com/stefangabos/Zebra_Database here}
1111
*
1212
* @author Stefan Gabos <contact@stefangabos.ro>
13-
* @version 2.12.0 (last revision: January 25, 2025)
13+
* @version 2.12.1 (last revision: February 07, 2025)
1414
* @copyright © 2006 - 2025 Stefan Gabos
1515
* @license https://www.gnu.org/licenses/lgpl-3.0.txt GNU LESSER GENERAL PUBLIC LICENSE
1616
* @package Zebra_Database
@@ -5325,7 +5325,8 @@ private function _escape($entries) {
53255325
*/
53265326
private function _is_mysql_function($value) {
53275327

5328-
$value = trim($value);
5328+
// trim strings
5329+
if (is_string($value)) $value = trim($value);
53295330

53305331
// returns TRUE if
53315332
return (

0 commit comments

Comments
 (0)