Author: danydb
Date: 2011-12-18 20:28:46 +0100 (Sun, 18 Dec 2011)
New Revision: 4622
Modified:
phpcompta/trunk/include/class_profile_menu.php
Log:
show also menu without module
Modified: phpcompta/trunk/include/class_profile_menu.php
===================================================================
--- phpcompta/trunk/include/class_profile_menu.php 2011-12-18 19:07:56 UTC
(rev 4621)
+++ phpcompta/trunk/include/class_profile_menu.php 2011-12-18 19:28:46 UTC
(rev 4622)
@@ -173,11 +173,14 @@
join profile_menu_type on (p_type_display=pm_type)
join menu_ref as mr on (mr.me_code=pm.me_code)
where
- p_id=$1 and p_type_display='E' and
me_code_dep is null
+ p_id=$1 and p_type_display not in
('M','P') and me_code_dep is null
order by p_order asc
", array($p_id));
-
- $this->sub_menu($ret, $p_id);
+ if (Database::num_row($ret))
+ {
+ echo "<h2>Menu sans module</h2>";
+ $this->sub_menu($ret, $p_id);
+ }
}
}
_______________________________________________
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev