Image upload fixes
This commit is contained in:
parent
7329310f1f
commit
90161d1014
|
@ -1,4 +1,4 @@
|
||||||
hedera-web (1.406.58) stable; urgency=low
|
hedera-web (1.406.59) stable; urgency=low
|
||||||
|
|
||||||
* Initial Release.
|
* Initial Release.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hedera-web",
|
"name": "hedera-web",
|
||||||
"version": "1.406.58",
|
"version": "1.406.59",
|
||||||
"description": "Verdnatura web page",
|
"description": "Verdnatura web page",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
@ -80,11 +80,11 @@ class Upload extends Vn\Web\JsonRequest {
|
||||||
$table = $db->quote($info['table']);
|
$table = $db->quote($info['table']);
|
||||||
$column = $db->quote($info['column']);
|
$column = $db->quote($info['column']);
|
||||||
|
|
||||||
if (!($schema && $table && column))
|
if (!($schema && $table && $column))
|
||||||
throw new UserException(s('Cannot update matching id'));
|
throw new UserException(s('Cannot update matching id'));
|
||||||
|
|
||||||
$pk = $db->getRow ("SHOW INDEX FROM $schema.$table WHERE Key_name = 'PRIMARY'");
|
$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']);
|
$pkColumn = $db->quote($pk['Column_name']);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue