projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Exchange rate bug when searching a non existing customer
[fa-stable.git]
/
includes
/
session.inc
diff --git
a/includes/session.inc
b/includes/session.inc
index ea1c12a54367e978845e0c99f4370ab7a2a571b0..8929ff2e4341e83a777b7e75ebd4fb7d76e8789c 100644
(file)
--- a/
includes/session.inc
+++ b/
includes/session.inc
@@
-176,8
+176,9
@@
if (!isset($_SESSION['language']))
$_SESSION['language']->set_language($_SESSION['language']->code);
// include $Hooks object if locale file exists
$_SESSION['language']->set_language($_SESSION['language']->code);
// include $Hooks object if locale file exists
-if
(@include_once($path_to_root . "/lang/".$_SESSION['language']->code."/locale.inc"))
+if
(file_exists($path_to_root . "/lang/".$_SESSION['language']->code."/locale.inc"))
{
{
+ include_once($path_to_root . "/lang/".$_SESSION['language']->code."/locale.inc");
$Hooks = new Hooks();
}
$Hooks = new Hooks();
}
@@
-186,7
+187,7
@@
include_once($path_to_root . "/config.php");
include_once($path_to_root . "/includes/main.inc");
// Ajax communication object
include_once($path_to_root . "/includes/main.inc");
// Ajax communication object
-$Ajax =
&
new Ajax();
+$Ajax = new Ajax();
// js/php validation rules container
$Validate = array();
// js/php validation rules container
$Validate = array();