A few small fixes
A few small fixes

--- a/lib/customer.class.php
+++ b/lib/customer.class.php
@@ -80,7 +80,7 @@
 $pass = md5($password.$salt);
 
 
-
+ global $notifications;
 
 if ($db->addCusttoPortal($id,$email,$pass.":".$salt,1)){
  
@@ -92,13 +92,17 @@
     $not->text = "The customer has been successfully added to the customer portal and can use the password <i>$password</i> to manage their credentials";
     // This echo is a temporary thing until I update Notifications
     echo "<div class='{$not->className}'>{$not->text}</div>";
-    $notifications->setNotification($not);
-    }
+   // $notifications->setNotification($not);
+    
+
+}else{
+    echo "<div class='alert alert-error'>Unable to update Customer Portal details</div>";
+}
 
   
 
   
-
+return true;
 
 
 

--- a/modules/login-navbar/login-navbar.php
+++ b/modules/login-navbar/login-navbar.php
@@ -22,7 +22,7 @@
 
 	<ul class="dropdown-menu" role="menu" id='CurUserMenu' aria-Labelled-by='dLabel'>
 	  <li><a href="index.php?option=logout">Log Out</a></li>
-	  <li><a href="index.php?option=changePassword">Change Password</a></li>
+	 <?php if (BTMain::getUser()->PortalLogin != 1):?> <li><a href="index.php?option=changePassword">Change Password</a></li><?php endif; ?>
 	</ul>