Skip to content

Commit 745cb4f

Browse files
committed
Update version number
1 parent 7251aa8 commit 745cb4f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @var string
2020
*/
21-
define('MPG_APP_VERSION', '1.0.6');
21+
define('MPG_APP_VERSION', '1.0.7');
2222

2323
/**
2424
* Development mode?

src/Helpers/MongoDBHelper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ class MongoDBHelper {
3636
*/
3737
private static function createClient() : Client {
3838

39+
if ( !isset($_SESSION['mpg']['user_is_logged']) ) {
40+
throw new \Exception('Session expired. Refresh browser.');
41+
}
42+
3943
$clientUri = 'mongodb://';
4044

4145
if ( isset($_SESSION['mpg']['mongodb_user'])

0 commit comments

Comments
 (0)