Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: class_datacache.php 5057 2010-06-23 08:07:55Z RyanGordon $
| * $Id: class_datacache.php 5380 2011-02-21 12:04:43Z Tomm $
|
*/
class datacache
| */
class datacache
|
Zeile 170 | Zeile 170 |
---|
"title" => $db->escape_string($name), "cache" => $dbcontents );
|
"title" => $db->escape_string($name), "cache" => $dbcontents );
|
$db->replace_query("datacache", $replace_array, "title", false);
| $db->replace_query("datacache", $replace_array, "", false);
|
// Do we have a cache handler we're using? if(is_object($this->handler))
| // Do we have a cache handler we're using? if(is_object($this->handler))
|
Zeile 521 | Zeile 521 |
---|
foreach($main as $forum) { $forum_mods = '';
|
foreach($main as $forum) { $forum_mods = '';
|
if($moderators)
| if(count($moderators))
|
{ $forum_mods = $moderators; } // Append - local settings override that of a parent - array_merge works here if($this->moderators[$forum['fid']]) {
|
{ $forum_mods = $moderators; } // Append - local settings override that of a parent - array_merge works here if($this->moderators[$forum['fid']]) {
|
if(is_array($forum_mods))
| if(is_array($forum_mods) && count($forum_mods))
|
{
|
{
|
$forum_mods = $forum_mods + $this->moderators[$forum['fid']];
| $forum_mods = array_merge($forum_mods, $this->moderators[$forum['fid']]);
|
} else {
| } else {
|