From: Roland Häder <roland@mxchange.org>
Date: Thu, 20 Sep 2012 17:49:47 +0000 (+0000)
Subject: Generating the FQFN (full-qualified file name) may fail in the future
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6703da39c439aa4772df4c1b31aca50b577e1406;p=core.git

Generating the FQFN (full-qualified file name) may fail in the future
---

diff --git a/inc/classes/main/database/databases/class_LocalFileDatabase.php b/inc/classes/main/database/databases/class_LocalFileDatabase.php
index efe6951b..c6dfc0ee 100644
--- a/inc/classes/main/database/databases/class_LocalFileDatabase.php
+++ b/inc/classes/main/database/databases/class_LocalFileDatabase.php
@@ -418,11 +418,11 @@ class LocalFileDatabase extends BaseDatabaseBackend implements DatabaseBackendIn
 	 * @throws	SqlException	If an SQL error occurs
 	 */
 	public function queryInsertDataSet (StoreableCriteria $dataSetInstance) {
-		// Create full path name
-		$fqfn = $this->generateFqfnFromDataSet($dataSetInstance, md5($dataSetInstance->getUniqueValue()));
-
 		// Try to save the request away
 		try {
+			// Create full path name
+			$fqfn = $this->generateFqfnFromDataSet($dataSetInstance, md5($dataSetInstance->getUniqueValue()));
+
 			// Write the data away
 			$this->writeDataArrayToFqfn($fqfn, $dataSetInstance->getCriteriaArray());