//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) {
+++ /dev/null
-<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