Changeset 2975

Show
Ignore:
Timestamp:
07/06/2008 07:20:45 PM (5 months ago)
Author:
Shadowhand
Message:

Fixing #661, thanks Nodren.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/ORM.php

    r2915 r2975  
    117117                if ($this->auto_save == TRUE) 
    118118                { 
    119                         // Automatically save the model 
    120                         $this->save(); 
     119                        try 
     120                        { 
     121                                // Automatically save the model 
     122                                $this->save(); 
     123                        } 
     124                        catch (Exception $e) 
     125                        { 
     126                                /// Log the error, rather than trying to display it, to avoid 
     127                                // "stack frame" errors. http://bugs.php.net/bug.php?id=33598 
     128                                Log::add('error', $e->getMessage()); 
     129                        } 
    121130                } 
    122131        }