From 781af84c381630d323d3cf2a7cfa158a15dd2efd Mon Sep 17 00:00:00 2001 From: bdaloukas Date: Wed, 28 Jun 2017 01:27:10 +0300 Subject: [PATCH] Fix MariaDB compatibility --- db/upgrade.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/db/upgrade.php b/db/upgrade.php index d565d81..4a4a8cb 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -59,6 +59,9 @@ function mpgame_db_copy_string_to_int( $table, $from, $to) { if ($rec->$to == $val) { continue; } + if ($val == 0) { + continue; + } $updrec = new stdClass; $updrec->id = $rec->id; $updrec->$to = $val;