Code

Set key if ssh is not available. Closes #760
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 3 Nov 2009 11:44:49 +0000 (11:44 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 3 Nov 2009 11:44:49 +0000 (11:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14733 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/posix/class_posixAccount.inc

index 43219aa6e60a0aab28d3c4be1e6c84b07d0dbc1e..764dc1409bd770c2e0dded2b2dc6a6b30f07eb77 100644 (file)
@@ -660,9 +660,7 @@ class posixAccount extends plugin
     $smarty->assign("workstations", $this->accessTo);
 
     // Add SSH button if available
-    if ($this->ssh) {
-      $smarty->assign("sshPublicKey", 1);
-    }
+    $smarty->assign("sshPublicKey", $this->ssh?1:0);
 
     $smarty->assign("apply", apply_filter());
     $smarty->assign("multiple_support" , $this->multiple_support_active);