From a5a43500240d25cf75174ff6b3dc938bd0795492 Mon Sep 17 00:00:00 2001 From: katagia Date: Sun, 18 May 2003 09:45:56 +0000 Subject: [PATCH] Small Bugfix. Samba-Flag wasn'T filled with whitespaces to constant length --- lam/lib/account.inc | 2 +- lam/templates/account.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lam/lib/account.inc b/lam/lib/account.inc index 45a67dd8..43344150 100644 --- a/lam/lib/account.inc +++ b/lam/lib/account.inc @@ -529,7 +529,7 @@ function smbflag() { // Creates te attribute attrFlags if ($_SESSION['account']->smb_flagsW) $flag = $flag . "W"; else $flag = $flag . "U"; if ($_SESSION['account']->smb_flagsD) $flag = $flag . "D"; if ($_SESSION['account']->smb_flagsX) $flag = $flag . "X"; - str_pad($flag, 12); + $flag = str_pad($flag, 12); $flag = $flag. "]"; return $flag; } diff --git a/lam/templates/account.php b/lam/templates/account.php index 6153dc20..8b4bdf9e 100644 --- a/lam/templates/account.php +++ b/lam/templates/account.php @@ -257,6 +257,8 @@ echo ' '; +echo smbflag(); + if (!$select_local) $select_local='general'; if ($_POST['createagain']) { $select_local='general';