This is gonna be fun to sort out...
authorCameron Ball <c.ball1729@gmail.com>
Fri, 20 Feb 2015 12:56:43 +0000 (20:56 +0800)
committerCameron Ball <c.ball1729@gmail.com>
Fri, 20 Feb 2015 12:56:43 +0000 (20:56 +0800)
.gitignore
DataAccess/FileRepository.php
lel [deleted file]
public_html/upload.html [deleted file]

index 75bb758..aa4599a 100644 (file)
@@ -10,3 +10,4 @@ files/banners/*
 FacebookApp.php
 app.php
 SimfileCache
+upload.html
\ No newline at end of file
index 74cb212..f84518d 100644 (file)
@@ -62,10 +62,10 @@ class FileRepository implements IFileRepository
         //I simply did return reset($results) but if we don't have an array that
         //won't work. So instead do a foreach (lazyload thing is iterable) and just
         //return the first element.
-        foreach($results as $result)
-        {
-            return $result;
-        }
+        //
+        //XXX: Disregard, I fixed the DB at home so that wasn't an issue and never
+        //put it up on the live server. Idiot.
+        return reset($results);
     }
     
     public function save(\Domain\Entities\IFile $file) {
diff --git a/lel b/lel
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/public_html/upload.html b/public_html/upload.html
deleted file mode 100644 (file)
index eb59711..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<html>
-    <body>
-        <form action="/simfiles/upload" method="post" enctype="multipart/form-data">
-            <input type="file" name="file" id="file" />
-            <input type="hidden" name="token" value="CAAFdJomTiBABAMx0eKHYDJ89mTFFTUirrFQhlziCHoUlbl5aNWbRZA9fLQxLfKDhS8KPRblAdZBXt6kDkYRiNH1v0WDDqgEDekIgv76wUelNCpi0x2PKxZCJQxpwop0N4MqpwAYgqlGHEOz4Ns4h66q2wJrujfCPExJyQrFaUbRZB5Li2FZCTkJKW5ZBUbY9AZD" />
-            <input type="submit" name="submit" value="submit" />
-        </form>
-    </body>
-</html>
\ No newline at end of file