summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjetskijoe <jetskijoe@users.sourceforge.net>2007-04-13 14:29:39 +0000
committerjetskijoe <jetskijoe@users.sourceforge.net>2007-04-13 14:29:39 +0000
commitbd4d5a05e8ab0a81f09a56fe44b77abb996e943d (patch)
tree15f42da3c4c5e3de5a70334377cf82f603e1b331
parent8163cfc9817890e606659feb3c522b9de014f287 (diff)
downloadcalendar-bd4d5a05e8ab0a81f09a56fe44b77abb996e943d.tar.gz
calendar-bd4d5a05e8ab0a81f09a56fe44b77abb996e943d.tar.bz2
calendar-bd4d5a05e8ab0a81f09a56fe44b77abb996e943d.zip
Code cleanup moved 2 if statements into 1
-rw-r--r--bit_setup_inc.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/bit_setup_inc.php b/bit_setup_inc.php
index 77e9e2e..cb86456 100644
--- a/bit_setup_inc.php
+++ b/bit_setup_inc.php
@@ -8,8 +8,8 @@ $registerHash = array(
);
$gBitSystem->registerPackage( $registerHash );
-if( $gBitSystem->isPackageActive( 'calendar' ) ) {
- if( $gBitUser->hasPermission( 'p_calendar_view' ) ) {
+if( $gBitSystem->isPackageActive( 'calendar' ) && $gBitUser->hasPermission( 'p_calendar_view' )) {
+
$menuHash = array(
'package_name' => CALENDAR_PKG_NAME,
'index_url' => CALENDAR_PKG_URL.'index.php',
@@ -17,6 +17,5 @@ if( $gBitSystem->isPackageActive( 'calendar' ) ) {
);
$gBitSystem->registerAppMenu( $menuHash );
}
-}
?>