mirror of
https://github.com/e107inc/e107.git
synced 2025-08-24 07:03:06 +02:00
Issue #1356 - PHP7 Fixes.
This commit is contained in:
@@ -133,7 +133,7 @@ class pm_cron // include plugin-folder in the name.
|
||||
|
||||
if ($this->ourDB->select('generic', '*', "`gen_type` = 'pm_bulk' LIMIT 1"))
|
||||
{
|
||||
$pmRow = $this->ourDB->fetch(MYSQL_ASSOC);
|
||||
$pmRow = $this->ourDB->fetch();
|
||||
$this->logLine("\r\n\r\n".str_replace('--NUM--',$pmRow['gen_intdata'],LAN_EC_PM_06).date('D j M Y G:i:s'));
|
||||
|
||||
$this->ourDB->delete('generic', "`gen_type` = 'pm_bulk' AND `gen_id` = ".$pmRow['gen_id']);
|
||||
|
@@ -403,7 +403,7 @@ class private_message
|
||||
$to = intval($to); // Precautionary
|
||||
if ($sql->select('private_msg_block', 'pm_block_from', 'pm_block_to = '.$to))
|
||||
{
|
||||
while($row = $sql->fetch(MYSQL_ASSOC))
|
||||
while($row = $sql->fetch())
|
||||
{
|
||||
$ret[] = $row['pm_block_from'];
|
||||
}
|
||||
@@ -426,7 +426,7 @@ class private_message
|
||||
$to = intval($to); // Precautionary
|
||||
if ($sql->gen('SELECT pm.*, u.user_name FROM `#private_msg_block` AS pm LEFT JOIN `#user` AS u ON `pm`.`pm_block_from` = `u`.`user_id` WHERE pm_block_to = '.$to))
|
||||
{
|
||||
while($row = $sql->fetch(MYSQL_ASSOC))
|
||||
while($row = $sql->fetch())
|
||||
{
|
||||
$ret[] = $row;
|
||||
}
|
||||
|
@@ -625,7 +625,7 @@ function doMaint($opts, $pmPrefs)
|
||||
if ($res = $db2->gen("SELECT pm.pm_id FROM `#private_msg` AS pm LEFT JOIN `#user` AS u ON pm.`pm_from` = `#user`.`user_id`
|
||||
WHERE (pm.`pm_read_del = 1) AND `#user`.`user_id` IS NULL"))
|
||||
{
|
||||
while ($row = $db2->fetch(MYSQL_ASSOC))
|
||||
while ($row = $db2->fetch())
|
||||
{
|
||||
if ($pmHandler->del($row['pm_id']) !== FALSE)
|
||||
{
|
||||
@@ -642,7 +642,7 @@ function doMaint($opts, $pmPrefs)
|
||||
if ($res = $db2->gen("SELECT pm.pm_id FROM `#private_msg` AS pm LEFT JOIN `#user` AS u ON pm.`pm_to` = `#user`.`user_id`
|
||||
WHERE (pm.`pm_sent_del = 1) AND `#user`.`user_id` IS NULL"))
|
||||
{
|
||||
while ($row = $db2->fetch(MYSQL_ASSOC))
|
||||
while ($row = $db2->fetch())
|
||||
{
|
||||
if ($pmHandler->del($row['pm_id']) !== FALSE)
|
||||
{
|
||||
@@ -703,7 +703,7 @@ function doMaint($opts, $pmPrefs)
|
||||
$cnt = 0;
|
||||
if($db2->db_Select('private_msg', 'pm_id', $qry))
|
||||
{
|
||||
while ($row = $db2->db_Fetch(MYSQL_ASSOC))
|
||||
while ($row = $db2->db_Fetch())
|
||||
{
|
||||
if ($pmHandler->del($row['pm_id']) !== FALSE)
|
||||
{
|
||||
@@ -731,7 +731,7 @@ function doMaint($opts, $pmPrefs)
|
||||
$fileArray = $fl->get_files(e_PLUGIN.'pm/attachments');
|
||||
if ($db2->select('private_msg', 'pm_id, pm_attachments', "pm_attachments != ''"))
|
||||
{
|
||||
while ($row = $db2->fetch(MYSQL_ASSOC))
|
||||
while ($row = $db2->fetch())
|
||||
{
|
||||
$attachList = explode(chr(0), $row['pm_attachments']);
|
||||
foreach ($attachList as $a)
|
||||
|
Reference in New Issue
Block a user