Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
itgro
helper
Commits
7a76f100
Commit
7a76f100
authored
9 years ago
by
feronetick
Browse files
Options
Download
Email Patches
Plain Diff
Лампочки в корзине
parent
b5f8abe9
master
68186-entsiklopedia
74841_new_delivery
new_auth
1.3.1
1.3.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/request/request.php
+1
-1
lib/request/request.php
lib/singleton.php
+1
-1
lib/singleton.php
with
2 additions
and
2 deletions
+2
-2
lib/request/request.php
+
1
-
1
View file @
7a76f100
...
...
@@ -14,7 +14,7 @@ class Request
*/
public
static
function
getMethod
(
$method
)
{
if
(
is_null
(
static
::
$methods
[
$method
]))
if
(
!
array_key_exists
(
$method
,
static
::
$methods
)
||
is_null
(
static
::
$methods
[
$method
]))
{
$className
=
static
::
className
(
$method
);
...
...
This diff is collapsed.
Click to expand it.
lib/singleton.php
+
1
-
1
View file @
7a76f100
...
...
@@ -16,7 +16,7 @@ abstract class Singleton
// TODO PHP 5.5 поддерживает константу static::class
$class
=
get_called_class
();
if
(
null
==
self
::
$instances
[
$class
])
if
(
!
array_key_exists
(
$class
,
self
::
$instances
)
||
null
==
self
::
$instances
[
$class
])
{
self
::
$instances
[
$class
]
=
new
$class
();
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help