]>
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) {
12 } catch (Exception
$e) {
16 $owner_uid = $_SESSION["uid"] ?
$_SESSION["uid"] : null;
18 $sth = $pdo->prepare("INSERT INTO ttrss_error_log
19 (errno, errstr, filename, lineno, context, owner_uid, created_at) VALUES
20 (?, ?, ?, ?, ?, ?, NOW())");
21 $sth->execute([$errno, $errstr, $file, $line, $context, $owner_uid]);
23 return $sth->rowCount();