Skip to content

Commit

Permalink
fixed sql syntax for reserved column name
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiez committed Sep 2, 2020
1 parent 011cb34 commit 34ec561
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea/
vendor/
vendor/
*.zip
2 changes: 1 addition & 1 deletion classes/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/

require_once __DIR__ . "/../controllers/admin/Sms77AdminController.php";
require_once __DIR__ . "./Constants.php";
require_once __DIR__ . "/Constants.php";

class Form extends HelperForm
{
Expand Down
2 changes: 1 addition & 1 deletion classes/TableWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ static function create() {
' . self::TIMESTAMP . ' DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
' . self::RESPONSE . ' TEXT NOT NULL,
' . self::TYPE . ' VARCHAR(12) NOT NULL,
' . self::GROUPS . ' VARCHAR(255),
`' . self::GROUPS . '` VARCHAR(255),
' . self::COUNTRIES . ' VARCHAR(255),
PRIMARY KEY (id_sms77_message)
) ENGINE=' . _MYSQL_ENGINE_ . ' DEFAULT CHARSET=utf8;
Expand Down
4 changes: 2 additions & 2 deletions classes/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

use Sms77\Api\Client;

require_once(__DIR__ . '/TableWrapper.php');
require_once(__DIR__ . '/Constants.php');
require_once __DIR__ . '/TableWrapper.php';
require_once __DIR__ . '/Constants.php';

class Util
{
Expand Down
4 changes: 4 additions & 0 deletions sms77.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
exit;
}

if (file_exists(__DIR__ . '/vendor/autoload.php')) {
require_once __DIR__ . '/vendor/autoload.php';
}

require_once dirname(__FILE__) . "/classes/Constants.php";
require_once dirname(__FILE__) . "/classes/Form.php";
require_once dirname(__FILE__) . "/classes/Personalizer.php";
Expand Down

0 comments on commit 34ec561

Please sign in to comment.