diff options
Diffstat (limited to 'image_order.php')
| -rwxr-xr-x | image_order.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/image_order.php b/image_order.php index 8e4a12e..3295a15 100755 --- a/image_order.php +++ b/image_order.php @@ -178,7 +178,9 @@ if (!empty($_REQUEST['cancel'])) { if( !empty( $storageHash ) ) { $galleryItem->store($storageHash); } - $galleryItem->updatePosition($gContent->mContentId, $newPos); + if( method_exists( $galleryItem, 'updatePosition' ) ) { + $galleryItem->updatePosition($gContent->mContentId, $newPos); + } } } unset( $storageHash ); |
