Subversion Repositories cheapmusic

Rev

Rev 78 | Rev 81 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 78 Rev 79
Line 305... Line 305...
305
    if ($result = mysqli_query($conn, $sql)) {
305
    if ($result = mysqli_query($conn, $sql)) {
306
        if (mysqli_num_rows($result) > 0) {
306
        if (mysqli_num_rows($result) > 0) {
307
            if ($row = mysqli_fetch_assoc($result)) {
307
            if ($row = mysqli_fetch_assoc($result)) {
308
                $_SESSION['priceMonitor']['created'] = $row['created'];
308
                $_SESSION['priceMonitor']['created'] = $row['created'];
309
                $_SESSION['priceMonitor']['access'] = $row['access'];
309
                $_SESSION['priceMonitor']['access'] = $row['access'];
-
 
310
                if (!empty($_SESSION['priceMonitor']['created']) && !empty($_SESSION['priceMonitor']['access'])
-
 
311
                    && $_SESSION['priceMonitor']['created'] > $_SESSION['priceMonitor']['access']) {
-
 
312
                    $_SESSION['priceMonitor']['newFlag'] = true;
-
 
313
                } else {
-
 
314
                    $_SESSION['priceMonitor']['newFlag'] = false;
-
 
315
                }
310
 
316
 
311
                return 0;
317
                return 0;
312
            }
318
            }
313
        }
319
        }
314
    }
320
    }