projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97ac893
)
Bug #8046: Default to 'imp' for compose links.
author
Michael M Slusarz
<slusarz@curecanti.org>
Mon, 9 Mar 2009 20:41:59 +0000
(14:41 -0600)
committer
Michael M Slusarz
<slusarz@curecanti.org>
Mon, 9 Mar 2009 20:41:59 +0000
(14:41 -0600)
imp/lib/IMP.php
patch
|
blob
|
history
diff --git
a/imp/lib/IMP.php
b/imp/lib/IMP.php
index
c1c906a
..
0ebbc76
100644
(file)
--- a/
imp/lib/IMP.php
+++ b/
imp/lib/IMP.php
@@
-420,7
+420,10
@@
class IMP
$args = self::composeLinkArgs($args, $extra);
if (is_null($view)) {
- $view = $_SESSION['imp']['view'];
+ /* Default to 'imp' if not currently logged-in. */
+ $view = empty($_SESSION['imp']['view'])
+ ? 'imp'
+ : $_SESSION['imp']['view'];
}
if ($view == 'dimp') {