Changeset 2976 for tags/2.1.3

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

Merged r2975 into tags/2.1.3

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tags/2.1.3/system/libraries/ORM.php

    r2260 r2976  
    102102                if ($this->auto_save == TRUE) 
    103103                { 
    104                         // Automatically save the model 
    105                         $this->save(); 
     104                        try 
     105                        { 
     106                                // Automatically save the model 
     107                                $this->save(); 
     108                        } 
     109                        catch (Exception $e) 
     110                        { 
     111                                /// Log the error, rather than trying to display it, to avoid 
     112                                // "stack frame" errors. http://bugs.php.net/bug.php?id=33598 
     113                                Log::add('error', $e->getMessage()); 
     114                        } 
    106115                } 
    107116        }