1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 06:38:00 +02:00

Session clear() with no key will now reset data array. Fix for nav-bar avatar alignment

This commit is contained in:
Cameron
2016-12-10 10:47:14 -08:00
parent 5e4735f112
commit 465a1309af
2 changed files with 11 additions and 3 deletions

View File

@@ -333,8 +333,13 @@ class e_session
* @param string $key * @param string $key
* @return e_session * @return e_session
*/ */
public function clear($key) public function clear($key=null)
{ {
if($key == null) // clear all under this namespace.
{
$this->_data = array(); // must be set to array() not unset.
}
unset($this->_data[$key]); unset($this->_data[$key]);
return $this; return $this;
} }
@@ -451,7 +456,10 @@ class e_session
break; break;
default: default:
session_module_name('files'); if(!isset($_SESSION))
{
session_module_name('files');
}
break; break;
} }

View File

@@ -143,7 +143,7 @@ table label.checkbox {
#sidebar .panel-body ul.list-unstyled { padding-left:0} #sidebar .panel-body ul.list-unstyled { padding-left:0}
li.dropdown-avatar > a.dropdown-toggle { padding:0; padding-top:9px; padding-bottom:10px}