From 3282d63380baa6772e347d4eb7976b7fdd92cc0f Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Fri, 20 Feb 2015 20:56:43 +0800 Subject: [PATCH] This is gonna be fun to sort out... --- .gitignore | 1 + DataAccess/FileRepository.php | 8 ++++---- lel | 0 public_html/upload.html | 9 --------- 4 files changed, 5 insertions(+), 13 deletions(-) delete mode 100644 lel delete mode 100644 public_html/upload.html diff --git a/.gitignore b/.gitignore index 75bb758..aa4599a 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ files/banners/* FacebookApp.php app.php SimfileCache +upload.html \ No newline at end of file diff --git a/DataAccess/FileRepository.php b/DataAccess/FileRepository.php index 74cb212..f84518d 100644 --- a/DataAccess/FileRepository.php +++ b/DataAccess/FileRepository.php @@ -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 index e69de29..0000000 diff --git a/public_html/upload.html b/public_html/upload.html deleted file mode 100644 index eb59711..0000000 --- a/public_html/upload.html +++ /dev/null @@ -1,9 +0,0 @@ - - -
- - - -
- - \ No newline at end of file -- 2.11.0