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

Issue #1356 - PHP7 Fixes.

This commit is contained in:
Cameron
2016-02-14 12:15:55 -08:00
parent 32636ec39d
commit 486f3d4961
54 changed files with 205 additions and 285 deletions

View File

@@ -467,7 +467,7 @@ class mailoutAdminClass extends e107MailManager
// Make sure DB object created
if($this->db2->select('user', 'user_name, user_loginname', 'user_id=' . intval($uid)))
{
$row = $this->db2->fetch(MYSQL_ASSOC);
$row = $this->db2->fetch();
$this->userCache[$uid] = $row['user_name'] . ' (' . $row['user_loginname'] . ')';
}
else
@@ -1907,7 +1907,7 @@ class mailoutAdminClass extends e107MailManager
{
$items = array();
// Store record number of any content record that needs to be changed
while($row = $this->db2->fetch(MYSQL_ASSOC))
while($row = $this->db2->fetch())
{
$items[] = $row['mail_source_id'];
if($row['mail_source_id'])
@@ -1952,7 +1952,7 @@ class mailoutAdminClass extends e107MailManager
// This forces one more loop, so we can clean up for last record read
$changeCount = 0;
$saveRow = array();
while(($row = $this->db2->fetch(MYSQL_ASSOC)) || $notLast)
while(($row = $this->db2->fetch()) || $notLast)
{
if(($lastMail > 0 && $row === FALSE) || ($lastMail != $row['mail_source_id']))
{