Modified:
trunk/Classes/Phaux-base/WHSession.php
trunk/Classes/REServe/reserve_main.php
Log:
Ick! Limit the errors
Modified: trunk/Classes/Phaux-base/WHSession.php
==============================================================================
--- trunk/Classes/Phaux-base/WHSession.php (original)
+++ trunk/Classes/Phaux-base/WHSession.php Wed Oct 10 22:12:48 2007
@@ -99,8 +99,13 @@
if(!is_array($anArray)){
$this->error('You must pass an array to addArrayToDebugErrors but
you passed '.
print_r($anArray));
+
}
- $this->debugErrors = array_merge($this->debugErrors,$anArray);
+ /*
+ **Keep the size of this down
+ */
+ $ne = array_merge($this->debugErrors,$anArray);
+ $this->debugErrors = array_slice($ne,-100);
return $this;
}
public function addDebugError($aString){
Modified: trunk/Classes/REServe/reserve_main.php
==============================================================================
--- trunk/Classes/REServe/reserve_main.php (original)
+++ trunk/Classes/REServe/reserve_main.php Wed Oct 10 22:12:48 2007
@@ -20,4 +20,5 @@
include("REDate.php");
include("RETime.php");
include("REDateAndTime.php");
-include('REDecimal.php');
\ No newline at end of file
+include('REDecimal.php');
+include('REText.php');
\ No newline at end of file