mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Session clear() with no key will now reset data array. Fix for nav-bar avatar alignment
This commit is contained in:
@@ -333,8 +333,13 @@ class e_session
|
||||
* @param string $key
|
||||
* @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]);
|
||||
return $this;
|
||||
}
|
||||
@@ -451,7 +456,10 @@ class e_session
|
||||
break;
|
||||
|
||||
default:
|
||||
session_module_name('files');
|
||||
if(!isset($_SESSION))
|
||||
{
|
||||
session_module_name('files');
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
@@ -143,7 +143,7 @@ table label.checkbox {
|
||||
#sidebar .panel-body ul.list-unstyled { padding-left:0}
|
||||
|
||||
|
||||
|
||||
li.dropdown-avatar > a.dropdown-toggle { padding:0; padding-top:9px; padding-bottom:10px}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user