From 2533e4ca4f79404a44ebc386a85a8fd65d6e7edb Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Thu, 4 May 2023 18:34:17 +0200 Subject: [PATCH] bugfix class.yui.php dragndrop positionen --- phpwf/plugins/class.yui.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpwf/plugins/class.yui.php b/phpwf/plugins/class.yui.php index d26805f9..ae2c7ada 100644 --- a/phpwf/plugins/class.yui.php +++ b/phpwf/plugins/class.yui.php @@ -1355,12 +1355,12 @@ class YUI { if($check[0]['sort'] < $check2[0]['sort']) { $maxsort = $check[0]['sort']; - $zuverschiebendezwischenpositionen = ''; + $zuverschiebendezwischenpositionen = array(0); $kinderartikel = $this->app->DB->SelectArr("SELECT id,sort FROM ".$module."_position WHERE explodiert_parent ='".$check[0]['id']."' ORDER BY sort ASC"); if((empty($kinderartikel)?0:count($kinderartikel))){ $maxsortkind = $this->app->DB->Select("SELECT max(sort) FROM ".$module."_position WHERE explodiert_parent ='".$check[0]['id']."'"); $zuverschiebendezwischenpositionentmp = $this->app->DB->SelectArr("SELECT ID FROM beleg_zwischenpositionen WHERE doctype='$module' AND doctypeid='$id' AND pos >='$maxsort' AND pos <= '$maxsortkind'"); - $zuverschiebendezwischenpositionen = array(); + $zuverschiebendezwischenpositionen = array(0); if(is_array($zuverschiebendezwischenpositionentmp)){ foreach ($zuverschiebendezwischenpositionentmp as $key => $value) { $zuverschiebendezwischenpositionen[] = $value['ID'];