diff --git a/debian/changelog b/debian/changelog index 8ce0ebea..ca38c734 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -hedera-web (1.406.58) stable; urgency=low +hedera-web (1.406.59) stable; urgency=low * Initial Release. diff --git a/package.json b/package.json index 44eb6ed9..492226c5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hedera-web", - "version": "1.406.58", + "version": "1.406.59", "description": "Verdnatura web page", "license": "GPL-3.0", "repository": { diff --git a/rest/image/upload.php b/rest/image/upload.php index dfdb78ea..8b998808 100644 --- a/rest/image/upload.php +++ b/rest/image/upload.php @@ -80,11 +80,11 @@ class Upload extends Vn\Web\JsonRequest { $table = $db->quote($info['table']); $column = $db->quote($info['column']); - if (!($schema && $table && column)) + if (!($schema && $table && $column)) throw new UserException(s('Cannot update matching id')); $pk = $db->getRow ("SHOW INDEX FROM $schema.$table WHERE Key_name = 'PRIMARY'"); - if (!pk) throw new UserException(s('Cannot update matching id')); + if (!$pk) throw new UserException(s('Cannot update matching id')); $pkColumn = $db->quote($pk['Column_name']);