Commit ad6cbca2 authored by Dane Powell's avatar Dane Powell
Browse files

Issue #1137784 by Dane Powell: Fixed errors when upgrading from previous versions

parent 99162bf7
Loading
Loading
Loading
Loading
+2 −2
Changes for mailhandler.install: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ function mailhandler_update_7201() {
  $ret = array();
  $result = db_query('SELECT * FROM {mailhandler_mailbox}');
  // For each mailbox, convert mail to alphanumeric, and move existing value into settings
  while ($row = db_fetch_array($result)) {
  while ($row = $result->fetchAssoc()) {
    $row['settings'] = unserialize($row['settings']);
    $row['settings']['mail'] = $row['mail'];
    $row['mail'] = mailhandler_alphanumeric($row['mail']);
@@ -58,7 +58,7 @@ function mailhandler_update_7201() {
  }
  $result = db_query('SELECT * FROM {feeds_source}');
  // For existing feed sources, need to convert selected mailboxes to alphanumeric
  while ($row = db_fetch_array($result)) {
  while ($row = $result->fetchAssoc()) {
    $row['config'] = unserialize($row['config']);
    if (isset($row['config']['MailhandlerFetcher']['mailbox'])) {
      $row['config']['MailhandlerFetcher']['mailbox'] = mailhandler_alphanumeric($row['config']['MailhandlerFetcher']['mailbox']);