summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-01-22 09:10:59 +0000
committerDries Buytaert <dries@buytaert.net>2005-01-22 09:10:59 +0000
commit42e7e7d5191b8107c8a6c0cd389db0d7e7efdb6e (patch)
treecfde2066e620e6ec3f609dd08ca633a35f724dba
parentdf3b371853e6a990405483b5ce98f6402b7631b3 (diff)
downloadbrdo-42e7e7d5191b8107c8a6c0cd389db0d7e7efdb6e.tar.gz
brdo-42e7e7d5191b8107c8a6c0cd389db0d7e7efdb6e.tar.bz2
- Small clean-up: '>= 1' => '> 0' => ''.
-rw-r--r--includes/menu.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index 490558d4e..1a3a0f9bf 100644
--- a/includes/menu.inc
+++ b/includes/menu.inc
@@ -532,7 +532,7 @@ function menu_rebuild() {
}
}
- if (count($new_items) > 0) {
+ if (count($new_items)) {
foreach ($new_items as $item) {
db_query('INSERT INTO {menu} (mid, pid, path, title, description, weight, type) VALUES (%d, %d, \'%s\', \'%s\', \'%s\', %d, %d)', $item['mid'], $item['pid'], $item['path'], $item['title'], $item['description'], $item['weight'], $item['type']);
}