projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve the PlView code, adding comments.
[platal.git]
/
classes
/
xnet.php
diff --git
a/classes/xnet.php
b/classes/xnet.php
index
08e6163
..
be74a32
100644
(file)
--- a/
classes/xnet.php
+++ b/
classes/xnet.php
@@
-47,7
+47,12
@@
class Xnet extends Platal
public function force_login(PlPage &$page)
{
public function force_login(PlPage &$page)
{
- http_redirect(S::v('loginX'));
+ $redirect = S::v('loginX');
+ if (!$redirect) {
+ $page->trigError('Impossible de s\'authentifier. Problème de configuration de plat/al.');
+ return;
+ }
+ http_redirect($redirect);
}
}
}
}