mirror of
https://github.com/standardebooks/web.git
synced 2025-07-16 03:16:36 -04:00
Use ::class names instead of strings in LocSubject and EbookTag
This commit is contained in:
parent
43416e76db
commit
4d321061c5
2 changed files with 2 additions and 2 deletions
|
@ -59,7 +59,7 @@ class EbookTag extends Tag{
|
||||||
SELECT *
|
SELECT *
|
||||||
from Tags
|
from Tags
|
||||||
where Name = ?
|
where Name = ?
|
||||||
', [$name], 'EbookTag');
|
', [$name], EbookTag::class);
|
||||||
|
|
||||||
if(isset($result[0])){
|
if(isset($result[0])){
|
||||||
return $result[0];
|
return $result[0];
|
||||||
|
|
|
@ -39,7 +39,7 @@ class LocSubject{
|
||||||
SELECT *
|
SELECT *
|
||||||
from LocSubjects
|
from LocSubjects
|
||||||
where Name = ?
|
where Name = ?
|
||||||
', [$name], 'LocSubject');
|
', [$name], LocSubject::class);
|
||||||
|
|
||||||
if(isset($result[0])){
|
if(isset($result[0])){
|
||||||
return $result[0];
|
return $result[0];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue