]>
git.wh0rd.org - tt-rss.git/blob - classes/logger/sql.php
4 function log_error($errno, $errstr, $file, $line, $context) {
8 if ($pdo && get_schema_version() > 117) {
10 $owner_uid = $_SESSION["uid"] ?
$_SESSION["uid"] : null;
12 $sth = $pdo->prepare("INSERT INTO ttrss_error_log
13 (errno, errstr, filename, lineno, context, owner_uid, created_at) VALUES
14 (?, ?, ?, ?, ?, ?, NOW())");
15 $sth->execute([$errno, $errstr, $file, $line, $context, $owner_uid]);
17 return $sth->rowCount();