Changeset 59ab0c3 in github


Ignore:
Timestamp:
Aug 12, 2011 10:01:02 AM (22 months ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
57ce504
Parents:
f4c3649
Message:
  • Fix infinite recurrence when saving user preferences stored in session
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_user.php

    r40a1860 r59ab0c3  
    123123                // Check last write attempt time, try to write again (every 5 minutes) 
    124124                if ($_SESSION['preferences_time'] < time() - 5 * 60) { 
    125                     $this->save_prefs(unserialize($_SESSION['preferences'])); 
     125                    $saved_prefs = unserialize($_SESSION['preferences']); 
     126                    $this->rc->session->remove('preferences'); 
     127                    $this->rc->session->remove('preferences_time'); 
     128                    $this->save_prefs($saved_prefs); 
    126129                } 
    127130                else { 
Note: See TracChangeset for help on using the changeset viewer.