// small fixes

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14651 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-04-16 09:47:34 +00:00
parent 41f137e82b
commit 3c2f9de5ba
10 changed files with 44 additions and 13 deletions
+6 -2
View File
@@ -38,8 +38,12 @@ $height = Tools::getValue('height');
$id_employee = Tools::getValue('id_employee');
$id_lang = Tools::getValue('id_lang');
if (Context::getContext()->employee->id != $id_employee)
die;
if (!isset($cookie->id_employee) || !$cookie->id_employee || $cookie->id_employee != $id_employee)
die(Tools::displayError());
if (!Validate::isModuleName($module))
die(Tools::displayError());
if (!Tools::file_exists_cache($module_path = dirname(__FILE__).'/../modules/'.$module.'/'.$module.'.php'))
die(Tools::displayError());