Skip to content
Permalink
Browse files

fixed to coerce type for publist mailcount

  • Loading branch information...
RocketMan committed Apr 21, 2019
1 parent 45e8e5d commit 8f889e3d19f4b2bec820e70b7bd9e4b48a902d12
Showing with 4 additions and 4 deletions.
  1. +4 −4 engine/impl/Editor.php
@@ -80,7 +80,7 @@ public function insertUpdateAlbum(&$album, $tracks, $label) {
$stmt->bindValue(10, $label["fax"]);
$stmt->bindValue(11, $label["email"]);
$stmt->bindValue(12, $label["url"]);
$stmt->bindValue(13, $label["mailcount"]);
$stmt->bindValue(13, (int)$label["mailcount"]);
$stmt->bindValue(14, $label["maillist"]);
} else if($label && array_key_exists("name", $label)) {
$query = "UPDATE publist SET name=?, attention=?, " .
@@ -99,7 +99,7 @@ public function insertUpdateAlbum(&$album, $tracks, $label) {
$stmt->bindValue(9, $label["fax"]);
$stmt->bindValue(10, $label["email"]);
$stmt->bindValue(11, $label["url"]);
$stmt->bindValue(12, $label["mailcount"]);
$stmt->bindValue(12, (int)$label["mailcount"]);
$stmt->bindValue(13, $label["maillist"]);
$stmt->bindValue(14, $label["pubkey"]);
} else if(!$album["tag"]) {
@@ -236,7 +236,7 @@ public function insertUpdateLabel(&$label) {
$stmt->bindValue(10, $label["fax"]);
$stmt->bindValue(11, $label["email"]);
$stmt->bindValue(12, $label["url"]);
$stmt->bindValue(13, $label["mailcount"]);
$stmt->bindValue(13, (int)$label["mailcount"]);
$stmt->bindValue(14, $label["maillist"]);
} else if($label) {
$query = "UPDATE publist SET name=?, attention=?, " .
@@ -255,7 +255,7 @@ public function insertUpdateLabel(&$label) {
$stmt->bindValue(9, $label["fax"]);
$stmt->bindValue(10, $label["email"]);
$stmt->bindValue(11, $label["url"]);
$stmt->bindValue(12, $label["mailcount"]);
$stmt->bindValue(12, (int)$label["mailcount"]);
$stmt->bindValue(13, $label["maillist"]);
$stmt->bindValue(14, $label["pubkey"]);
}

0 comments on commit 8f889e3

Please sign in to comment.
You can’t perform that action at this time.