mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Fix PHP errors under some circumstances.
This commit is contained in:
parent
b06e0e16fb
commit
51024a5e8e
@ -169,7 +169,7 @@ if(false === $cached)
|
||||
$month_selector = '<span class="btn-group pull-right float-right float-end"><a class="btn btn-mini btn-default btn-secondary btn-sm btn-xs " href="#blogCalendar" data-slide="prev" data-bs-slide="prev">‹</a>
|
||||
<a class="btn btn-mini btn-default btn-secondary btn-sm btn-xs" href="#blogCalendar" data-slide="next" data-bs-slide="next">›</a></span>';
|
||||
|
||||
$caption = "<span class='inline-text'>".BLOGCAL_L1." ".$month_selector."</span>";
|
||||
$caption = "<span class='inline-text'>".defset('BLOGCAL_L1')." ".$month_selector."</span>";
|
||||
|
||||
$menu = "<div id='blogCalendar' data-interval='false' class='carousel slide blogcalendar-block text-center'>";
|
||||
$menu .= "<div class='blogcalendar-day-selector carousel-inner'>";
|
||||
|
@ -19,6 +19,10 @@ e107::lan('chatbox_menu', e_LANGUAGE);
|
||||
|
||||
require_once(HEADERF);
|
||||
$mes = e107::getMessage();
|
||||
$tp = e107::getParser();
|
||||
$sql = e107::getDb();
|
||||
$ns = e107::getRender();
|
||||
|
||||
if($sql->select('menus', "*", "menu_name='chatbox_menu'"))
|
||||
{
|
||||
$row = $sql->fetch();
|
||||
@ -42,7 +46,9 @@ if(!defined('CB_MOD'))
|
||||
|
||||
if ( ! empty($_POST['moderate']) && CB_MOD) {
|
||||
|
||||
if (isset($_POST['block'])) {
|
||||
if (isset($_POST['block']))
|
||||
{
|
||||
$kk = array();
|
||||
|
||||
foreach (array_keys($_POST['block']) as $k) {
|
||||
$kk[] = intval($k);
|
||||
@ -53,8 +59,10 @@ if ( ! empty($_POST['moderate']) && CB_MOD) {
|
||||
}
|
||||
|
||||
|
||||
if (isset($_POST['unblock'])) {
|
||||
|
||||
if (isset($_POST['unblock']))
|
||||
{
|
||||
$k = array();
|
||||
$kk = array();
|
||||
foreach (array_keys($_POST['unblock']) as $k) {
|
||||
$kk[] = intval($k);
|
||||
}
|
||||
@ -118,13 +126,15 @@ if ($fs) {
|
||||
|
||||
while ($row = $sql->fetch()) {
|
||||
|
||||
if ($row['cb_id'] == $cgtm) {
|
||||
if ($row['cb_id'] == $cgtm)
|
||||
{
|
||||
$from = $page_count;
|
||||
break;
|
||||
}
|
||||
|
||||
$row_count++;
|
||||
if ($row_count == 30) {
|
||||
if ($row_count == 30)
|
||||
{
|
||||
$row_count = 0;
|
||||
$page_count += 30;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user