projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b703d81
)
Pman/Login.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 16 Dec 2010 03:26:05 +0000
(11:26 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 16 Dec 2010 03:26:05 +0000
(11:26 +0800)
Pman/Login.php
patch
|
blob
|
history
diff --git
a/Pman/Login.php
b/Pman/Login.php
index
1ed580f
..
f655568
100644
(file)
--- a/
Pman/Login.php
+++ b/
Pman/Login.php
@@
-138,7
+138,7
@@
class Pman_Login extends Pman
if (!$au|| ($au->company_id_comptype != 'OWNER') || !$this->hasPerm('Core.Person', 'E')) {
$this->jerr("User switching not permitted");
}
- $old = clone($au);
+
$u = DB_DataObject::factory($tbl);
$u->get($id);
@@
-147,7
+147,7
@@
class Pman_Login extends Pman
}
$u->login();
// we might need this later..
- $this->addEvent("SWITCH USER", false, $
old
->name . ' TO ' . $u->name);
+ $this->addEvent("SWITCH USER", false, $
au
->name . ' TO ' . $u->name);
$this->jok("SWITCH");
}