From 36b19891e0f64dc3ef5be071ffa0c40c527b09bf Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Mon, 28 Apr 2014 15:23:46 -0500
Subject: [PATCH] oops: Don't crash rendering user popup

---
 include/staff/templates/user.tmpl.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/staff/templates/user.tmpl.php b/include/staff/templates/user.tmpl.php
index 9cfb8554c..5cc1178ff 100644
--- a/include/staff/templates/user.tmpl.php
+++ b/include/staff/templates/user.tmpl.php
@@ -65,6 +65,7 @@ if ($info['error']) {
     </table>
 </div>
 
+<?php if ($org) { ?>
 <div class="tab_content" id="organization-tab" style="display:none">
 <div class="floating-options">
     <a href="orgs.php?id=<?php echo $org->getId(); ?>" title="Manage Organization"
@@ -85,6 +86,7 @@ if ($info['error']) {
 ?>
     </table>
 </div>
+<?php } # endif ($org) ?>
 
 <div class="tab_content" id="notes-tab" style="display:none">
 <?php $show_options = true;
-- 
GitLab