Browse Source

Debug the debug

pjc 5 years ago
parent
commit
93d56e84ee
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      sections/upload/upload_handle.php

+ 3
- 1
sections/upload/upload_handle.php View File

556
   ]);
556
   ]);
557
   $Debug->set_flag('upload: ocelot updated');
557
   $Debug->set_flag('upload: ocelot updated');
558
 } else {
558
 } else {
559
-  $TorrentID_debug = $DB->query = "SELECT MAX(ID) FROM torrents" + 1;
559
+  $TorrentID_debug = $DB->query("
560
+    SELECT MAX(ID) FROM torrents
561
+  ");
560
   var_dump($TorrentID_debug);
562
   var_dump($TorrentID_debug);
561
   error(0);
563
   error(0);
562
 }
564
 }

Loading…
Cancel
Save