From e318b940cef90cefb52309fde33c2b31e7724267 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Sun, 16 Jul 2017 09:02:07 +0100 Subject: [PATCH] Correct some "=+ 1" -> "+= 1" typos in setup.py. This probably wasn't causing a problem as we were setting $error to +1 and we only ever check whether it is non-zero. --- setup.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/setup.php b/setup.php index 13755b05..301f16da 100644 --- a/setup.php +++ b/setup.php @@ -148,7 +148,7 @@ else print "Create the file, and edit as appropriate (e.g. select database type etc)
"; print "For example:
\n"; print "
cp config.inc.php.sample config.inc.php
\n"; - $error =+ 1; + $error += 1; } // @@ -186,7 +186,7 @@ if (($f_mysql_connect == 0) and ($f_mysqli_connect == 0) and ($f_pg_connect == 0 print "% make clean install\n"; print " - or with portupgrade -\n"; print "% portinstall php{$phpversion}-pgsql\n"; - $error =+ 1; + $error += 1; } // // MySQL 3.23, 4.0 functions @@ -262,7 +262,7 @@ else print "% make clean install\n"; print " - or with portupgrade -\n"; print "% portinstall php$phpversion-session\n"; - $error =+ 1; + $error += 1; } // @@ -280,7 +280,7 @@ else print "% make clean install\n"; print " - or with portupgrade -\n"; print "% portinstall php$phpversion-pcre\n"; - $error =+ 1; + $error += 1; } // @@ -294,7 +294,7 @@ else { print "
  • Error: Depends on: multibyte string - NOT FOUND
    \n"; print "To install multibyte string support, install php$phpversion-mbstring
  • \n"; - $error =+ 1; + $error += 1; } @@ -310,7 +310,7 @@ else print "
  • Warning: Depends on: IMAP functions - NOT FOUND
    \n"; print "To install IMAP support, install php$phpversion-imap
    \n"; print "Without IMAP support, you won't be able to create subfolders when creating mailboxes.
  • \n"; - # $error =+ 1; + # $error += 1; }