Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Check if user exists by either username or mail

givanzbcf5c26fa42f
diff --git a/admin/sql/mysqli/category.sql b/admin/sql/mysqli/category.sql
index fb7c1b2..edbd318 100644
--- a/admin/sql/mysqli/category.sql
+++ b/admin/sql/mysqli/category.sql
@@ -665,7 +665,7 @@
-- Delete menu item
CREATE PROCEDURE deleteTaxonomyItem(
- IN taxonomy_item_id INT,
+ IN taxonomy_item_id ARRAY,
OUT insert_id
)
BEGIN
@@ -676,7 +676,7 @@
SELECT taxonomy_item_id,
parent_id
FROM taxonomy_item
- WHERE taxonomy_item_id = :taxonomy_item_id
+ WHERE taxonomy_item_id IN(:taxonomy_item_id)
UNION ALL
@@ -693,7 +693,7 @@
SELECT taxonomy_item_id,
parent_id
FROM taxonomy_item
- WHERE taxonomy_item_id = :taxonomy_item_id
+ WHERE taxonomy_item_id IN(:taxonomy_item_id)
UNION ALL
diff --git a/admin/sql/pgsql/category.sql b/admin/sql/pgsql/category.sql
index 855c329..580e343 100755
--- a/admin/sql/pgsql/category.sql
+++ b/admin/sql/pgsql/category.sql
@@ -170,7 +170,7 @@
FROM post_content pc
LEFT JOIN post p ON (pc.post_id = p.post_id)
LEFT JOIN post_to_taxonomy_item ptt ON (ptt.taxonomy_item_id = categories.taxonomy_item_id AND ptt.post_id = p.post_id)
- WHERE ptt.taxonomy_item_id = categories.taxonomy_item_id ORDER by p.sort_order
+ WHERE ptt.taxonomy_item_id = categories.taxonomy_item_id ORDER BY p.sort_order
) AS post
FROM taxonomy_item AS categories
@@ -657,7 +657,7 @@
-- Delete menu item
CREATE PROCEDURE deleteTaxonomyItem(
- IN taxonomy_item_id INT,
+ IN taxonomy_item_id ARRAY,
OUT insert_id
)
BEGIN
@@ -668,7 +668,7 @@
SELECT taxonomy_item_id,
parent_id
FROM taxonomy_item
- WHERE taxonomy_item_id = :taxonomy_item_id
+ WHERE taxonomy_item_id IN(:taxonomy_item_id)
UNION ALL
@@ -685,7 +685,7 @@
SELECT taxonomy_item_id,
parent_id
FROM taxonomy_item
- WHERE taxonomy_item_id = :taxonomy_item_id
+ WHERE taxonomy_item_id IN(:taxonomy_item_id)
UNION ALL
diff --git a/admin/sql/sqlite/category.sql b/admin/sql/sqlite/category.sql
index f7f1a19..c5cebf6 100755
--- a/admin/sql/sqlite/category.sql
+++ b/admin/sql/sqlite/category.sql
@@ -666,7 +666,7 @@
-- Delete menu item
CREATE PROCEDURE deleteTaxonomyItem(
- IN taxonomy_item_id INT,
+ IN taxonomy_item_id ARRAY,
OUT insert_id
)
BEGIN
@@ -677,7 +677,7 @@
SELECT taxonomy_item_id,
parent_id
FROM taxonomy_item
- WHERE taxonomy_item_id = :taxonomy_item_id
+ WHERE taxonomy_item_id IN(:taxonomy_item_id)
UNION ALL
@@ -694,7 +694,7 @@
SELECT taxonomy_item_id,
parent_id
FROM taxonomy_item
- WHERE taxonomy_item_id = :taxonomy_item_id
+ WHERE taxonomy_item_id IN(:taxonomy_item_id)
UNION ALL