]> git.mxchange.org Git - core.git/blobdiff - inc/classes/main/result/class_DatabaseResult.php
All empty double-quoted strings replaced with single-quotes
[core.git] / inc / classes / main / result / class_DatabaseResult.php
index 94fe3b5deff55a2f96fac4aaba5bde59197b32a0..e0d169a5caadaff51f00daff0306291be33d7ed1 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, this is free software
+ * @copyright  Copyright (c) 2007 - 2009 Roland Haeder, this is free software
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -54,7 +54,7 @@ class DatabaseResult extends BaseFrameworkSystem implements SearchableResult, Up
        /**
         * Found value
         */
-       private $foundValue = "";
+       private $foundValue = '';
 
        /**
         * Protected constructor
@@ -265,17 +265,17 @@ class DatabaseResult extends BaseFrameworkSystem implements SearchableResult, Up
                        } // END - if
                } // END - while
 
-               // Set affected rows
-               $this->setAffectedRows($foundEntries);
-
                // If no entry is found/updated throw an exception
                if ($foundEntries == 0) {
                        // Throw an exception here
                        throw new ResultUpdateException($this, self::EXCEPTION_RESULT_UPDATE_FAILED);
                } // END - if
 
-               // Set search instance
-               $this->setSearchInstance($searchInstance);
+               // Set affected rows
+               $this->setAffectedRows($foundEntries);
+
+               // Set update instance
+               $this->setUpdateInstance($criteriaInstance);
        }
 
        /**